|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwinstone.WinstoneResponse
public class WinstoneResponse
Response for servlet
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
WinstoneResponse()
Constructor |
|
| Method Summary | |
|---|---|
void |
addCookie(Cookie cookie)
|
void |
addDateHeader(java.lang.String name,
long date)
|
void |
addHeader(java.lang.String name,
java.lang.String value)
|
void |
addIntHeader(java.lang.String name,
int value)
|
void |
cleanUp()
Resets the request to be reused |
void |
clearIncludeStackForForward()
|
boolean |
closeAfterRequest()
Based on request/response headers and the protocol, determine whether or not this connection should operate in keep-alive mode. |
boolean |
containsHeader(java.lang.String name)
|
java.lang.String |
encodeRedirectUrl(java.lang.String url)
Deprecated. |
java.lang.String |
encodeRedirectURL(java.lang.String url)
|
java.lang.String |
encodeUrl(java.lang.String url)
Deprecated. |
java.lang.String |
encodeURL(java.lang.String url)
|
void |
extractRequestKeepAliveHeader(WinstoneRequest req)
|
void |
finishIncludeBuffer()
|
void |
flushBuffer()
|
int |
getBufferSize()
|
java.lang.String |
getCharacterEncoding()
|
protected static java.lang.String |
getCharsetFromContentTypeHeader(java.lang.String type,
java.lang.StringBuffer remainder)
|
java.lang.String |
getContentType()
|
java.util.List |
getCookies()
|
java.lang.Integer |
getErrorStatusCode()
|
java.lang.String |
getHeader(java.lang.String name)
|
java.util.List |
getHeaders()
|
java.util.Locale |
getLocale()
|
ServletOutputStream |
getOutputStream()
|
java.lang.String |
getProtocol()
|
WinstoneRequest |
getRequest()
|
int |
getStatus()
|
WinstoneOutputStream |
getWinstoneOutputStream()
|
java.io.PrintWriter |
getWriter()
|
boolean |
isCommitted()
|
protected static void |
quote(java.lang.String value,
java.lang.StringBuffer out)
Quotes the necessary strings in a cookie header. |
void |
reset()
|
void |
resetBuffer()
|
void |
sendError(int sc)
|
void |
sendError(int sc,
java.lang.String msg)
|
void |
sendRedirect(java.lang.String location)
|
void |
setBufferSize(int size)
|
void |
setCharacterEncoding(java.lang.String encoding)
|
void |
setContentLength(int len)
|
void |
setContentType(java.lang.String type)
|
void |
setDateHeader(java.lang.String name,
long date)
|
void |
setErrorStatusCode(int statusCode)
|
void |
setHeader(java.lang.String name,
java.lang.String value)
|
void |
setIntHeader(java.lang.String name,
int value)
|
void |
setLocale(java.util.Locale loc)
|
void |
setOutputStream(WinstoneOutputStream outData)
|
void |
setProtocol(java.lang.String protocol)
|
void |
setRequest(WinstoneRequest req)
|
void |
setStatus(int sc)
|
void |
setStatus(int sc,
java.lang.String sm)
Deprecated. |
void |
setWebAppConfig(WebAppConfiguration webAppConfig)
|
void |
startIncludeBuffer()
|
void |
validateHeaders()
This ensures the bare minimum correct http headers are present |
java.lang.String |
writeCookie(Cookie cookie)
Writes out the http header for a single cookie |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WinstoneResponse()
| Method Detail |
|---|
public void cleanUp()
public void setErrorStatusCode(int statusCode)
public WinstoneOutputStream getWinstoneOutputStream()
public void setOutputStream(WinstoneOutputStream outData)
public void setWebAppConfig(WebAppConfiguration webAppConfig)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
public void extractRequestKeepAliveHeader(WinstoneRequest req)
public java.util.List getHeaders()
public java.util.List getCookies()
public WinstoneRequest getRequest()
public void setRequest(WinstoneRequest req)
public void startIncludeBuffer()
public void finishIncludeBuffer()
throws java.io.IOException
java.io.IOException
public void clearIncludeStackForForward()
throws java.io.IOException
java.io.IOException
protected static java.lang.String getCharsetFromContentTypeHeader(java.lang.String type,
java.lang.StringBuffer remainder)
public void validateHeaders()
public java.lang.String writeCookie(Cookie cookie)
throws java.io.IOException
java.io.IOException
protected static void quote(java.lang.String value,
java.lang.StringBuffer out)
public boolean closeAfterRequest()
public void flushBuffer()
throws java.io.IOException
flushBuffer in interface ServletResponsejava.io.IOExceptionpublic void setBufferSize(int size)
setBufferSize in interface ServletResponsepublic int getBufferSize()
getBufferSize in interface ServletResponsepublic java.lang.String getCharacterEncoding()
getCharacterEncoding in interface ServletResponsepublic void setCharacterEncoding(java.lang.String encoding)
setCharacterEncoding in interface ServletResponsepublic java.lang.String getContentType()
getContentType in interface ServletResponsepublic void setContentType(java.lang.String type)
setContentType in interface ServletResponsepublic java.util.Locale getLocale()
getLocale in interface ServletResponsepublic void setLocale(java.util.Locale loc)
setLocale in interface ServletResponse
public ServletOutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface ServletResponsejava.io.IOException
public java.io.PrintWriter getWriter()
throws java.io.IOException
getWriter in interface ServletResponsejava.io.IOExceptionpublic boolean isCommitted()
isCommitted in interface ServletResponsepublic void reset()
reset in interface ServletResponsepublic void resetBuffer()
resetBuffer in interface ServletResponsepublic void setContentLength(int len)
setContentLength in interface ServletResponsepublic void addCookie(Cookie cookie)
addCookie in interface HttpServletResponsepublic boolean containsHeader(java.lang.String name)
containsHeader in interface HttpServletResponse
public void addDateHeader(java.lang.String name,
long date)
addDateHeader in interface HttpServletResponse
public void addIntHeader(java.lang.String name,
int value)
addIntHeader in interface HttpServletResponse
public void addHeader(java.lang.String name,
java.lang.String value)
addHeader in interface HttpServletResponse
public void setDateHeader(java.lang.String name,
long date)
setDateHeader in interface HttpServletResponse
public void setIntHeader(java.lang.String name,
int value)
setIntHeader in interface HttpServletResponse
public void setHeader(java.lang.String name,
java.lang.String value)
setHeader in interface HttpServletResponsepublic java.lang.String getHeader(java.lang.String name)
public java.lang.String encodeRedirectURL(java.lang.String url)
encodeRedirectURL in interface HttpServletResponsepublic java.lang.String encodeURL(java.lang.String url)
encodeURL in interface HttpServletResponsepublic int getStatus()
public java.lang.Integer getErrorStatusCode()
public void setStatus(int sc)
setStatus in interface HttpServletResponse
public void sendRedirect(java.lang.String location)
throws java.io.IOException
sendRedirect in interface HttpServletResponsejava.io.IOException
public void sendError(int sc)
throws java.io.IOException
sendError in interface HttpServletResponsejava.io.IOException
public void sendError(int sc,
java.lang.String msg)
throws java.io.IOException
sendError in interface HttpServletResponsejava.io.IOExceptionpublic java.lang.String encodeRedirectUrl(java.lang.String url)
encodeRedirectUrl in interface HttpServletResponsepublic java.lang.String encodeUrl(java.lang.String url)
encodeUrl in interface HttpServletResponse
public void setStatus(int sc,
java.lang.String sm)
setStatus in interface HttpServletResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||