|
|||||||||
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 |
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()
|
HttpServletResponseFacade |
getFacade()
One-to-one with Facade. |
java.util.Locale |
getLocale()
|
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. |
void |
recycle()
Response objects will be pool-able |
void |
reset()
|
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 |
setRequest(Request request)
One-to-one relation with Request |
void |
setSessionId(java.lang.String sId)
Will set the session id. |
void |
setStatus(int status)
|
Method Detail |
public boolean containsHeader(java.lang.String name)
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 finish() throws java.io.IOException
public javax.servlet.ServletOutputStream getOutputStream()
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 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 HttpServletResponseFacade 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 |