|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addCookie(javax.servlet.http.Cookie cookie)
|
void |
addHeader(java.lang.String name,
java.lang.String value)
|
boolean |
containsHeader(java.lang.String name)
|
void |
doWrite(byte[] buffer,
int pos,
int count)
|
void |
endHeaders()
Signal that we're done with the headers, and body will follow. |
void |
finish()
Signal that we're done with a particular request, the server can go on and read more requests or close the socket |
void |
flushBuffer()
Any implementation needs to notify ContextManger |
int |
getBufferSize()
|
java.lang.String |
getCharacterEncoding()
translate locale into encoding. |
int |
getContentLength()
|
java.lang.String |
getContentType()
|
java.util.Enumeration |
getCookies()
|
javax.servlet.http.HttpServletResponse |
getFacade()
One-to-one with Facade. |
java.util.Locale |
getLocale()
|
org.apache.tomcat.util.MimeHeaders |
getMimeHeaders()
|
org.apache.tomcat.util.ByteBuffer |
getOutputBuffer()
|
javax.servlet.ServletOutputStream |
getOutputStream()
Either re-implement getOutputStream or return BufferedServletOutputStream(this) and implement doWrite(); |
Request |
getRequest()
|
java.lang.String |
getSessionId()
|
int |
getStatus()
|
java.io.PrintWriter |
getWriter()
|
boolean |
isBufferCommitted()
|
boolean |
isIncluded()
True if we are in an included servlet |
boolean |
isStarted()
True if getOutputStream or getWriter was called. |
boolean |
isUsingStream()
True if getOutputStream was called. |
boolean |
isUsingWriter()
Stream/Writer control |
void |
recycle()
Response objects will be pool-able |
void |
reset()
|
void |
resetBuffer()
|
void |
setBufferSize(int size)
|
void |
setContentLength(int contentLength)
|
void |
setContentType(java.lang.String contentType)
Set content type - this might also set encoding, if specified |
void |
setHeader(java.lang.String name,
java.lang.String value)
|
void |
setIncluded(boolean b)
The response will not set any header or the status line - it can only write to the output stream or flush. |
void |
setLocale(java.util.Locale locale)
|
void |
setOutputBuffer(org.apache.tomcat.util.ByteBuffer buf)
|
void |
setRequest(Request request)
One-to-one relation with Request |
void |
setSessionId(java.lang.String sId)
Will set the session id. |
void |
setStatus(int status)
|
void |
setUsingStream(boolean stream)
The output stream is used. |
void |
setUsingWriter(boolean writer)
Stream/Writer control |
Method Detail |
public boolean containsHeader(java.lang.String name)
public org.apache.tomcat.util.MimeHeaders getMimeHeaders()
public void setHeader(java.lang.String name, java.lang.String value)
public void addHeader(java.lang.String name, java.lang.String value)
public void endHeaders() throws java.io.IOException
public boolean isStarted()
public boolean isUsingStream()
public void setUsingStream(boolean stream)
public boolean isUsingWriter()
public void setUsingWriter(boolean writer)
public void finish() throws java.io.IOException
public javax.servlet.ServletOutputStream getOutputStream()
public void doWrite(byte[] buffer, int pos, int count) throws java.io.IOException
public java.io.PrintWriter getWriter() throws java.io.IOException
public boolean isIncluded()
public void setIncluded(boolean b)
public int getBufferSize()
public void setBufferSize(int size) throws java.lang.IllegalStateException
public boolean isBufferCommitted()
public void reset() throws java.lang.IllegalStateException
public void resetBuffer() throws java.lang.IllegalStateException
public void flushBuffer() throws java.io.IOException
public void addCookie(javax.servlet.http.Cookie cookie)
public java.util.Enumeration getCookies()
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
public java.lang.String getCharacterEncoding()
public void setContentType(java.lang.String contentType)
public java.lang.String getContentType()
public void setContentLength(int contentLength)
public int getContentLength()
public void setStatus(int status)
public int getStatus()
public void setSessionId(java.lang.String sId)
public java.lang.String getSessionId()
public org.apache.tomcat.util.ByteBuffer getOutputBuffer()
public void setOutputBuffer(org.apache.tomcat.util.ByteBuffer buf)
public javax.servlet.http.HttpServletResponse getFacade()
public void setRequest(Request request)
public Request getRequest()
public void recycle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |