|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.ServletResponseWrapper javax.servlet.http.HttpServletResponseWrapper net.sf.ehcache.constructs.web.GenericResponseWrapper
public class GenericResponseWrapper
Provides a wrapper for HttpServletResponseWrapper
.
Field Summary |
---|
Fields inherited from interface javax.servlet.http.HttpServletResponse |
---|
SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_FOUND, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_TIMEOUT, SC_REQUEST_URI_TOO_LONG, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY |
Constructor Summary | |
---|---|
GenericResponseWrapper(javax.servlet.http.HttpServletResponse response,
java.io.OutputStream outstr)
Creates a GenericResponseWrapper |
Method Summary | |
---|---|
void |
addCookie(javax.servlet.http.Cookie cookie)
Adds a cookie. |
void |
addHeader(java.lang.String name,
java.lang.String value)
Adds a header. |
java.lang.String |
encodeRedirectUrl(java.lang.String s)
Override the deprecated method and call non-deprecated method |
java.lang.String |
encodeUrl(java.lang.String s)
Override the deprecated method and call non-deprecated method |
void |
flush()
Flushes all the streams for this response. |
void |
flushBuffer()
Flushes buffer and commits response to client. |
int |
getContentLength()
Gets the content length. |
java.lang.String |
getContentType()
Gets the content type. |
java.util.Collection |
getCookies()
Gets all the cookies. |
java.util.Collection |
getHeaders()
Gets the headers. |
javax.servlet.ServletOutputStream |
getOutputStream()
Gets the outputstream. |
int |
getStatus()
Returns the status code for this response. |
java.io.PrintWriter |
getWriter()
Gets the print writer. |
void |
reset()
Resets the response. |
void |
resetBuffer()
Resets the buffers. |
void |
sendError(int i)
Send the error. |
void |
sendError(int i,
java.lang.String string)
Send the error. |
void |
sendRedirect(java.lang.String string)
Send the redirect. |
void |
setContentLength(int length)
Sets the content length. |
void |
setContentType(java.lang.String type)
Sets the content type. |
void |
setHeader(java.lang.String name,
java.lang.String value)
|
void |
setStatus(int code)
Sets the status code for this response. |
void |
setStatus(int code,
java.lang.String msg)
Sets the status code for this response. |
Methods inherited from class javax.servlet.http.HttpServletResponseWrapper |
---|
addDateHeader, addIntHeader, containsHeader, encodeRedirectURL, encodeURL, setDateHeader, setIntHeader |
Methods inherited from class javax.servlet.ServletResponseWrapper |
---|
getBufferSize, getCharacterEncoding, getLocale, getResponse, isCommitted, setBufferSize, setCharacterEncoding, setLocale, setResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.ServletResponse |
---|
getBufferSize, getCharacterEncoding, getLocale, isCommitted, setBufferSize, setCharacterEncoding, setLocale |
Constructor Detail |
---|
public GenericResponseWrapper(javax.servlet.http.HttpServletResponse response, java.io.OutputStream outstr)
Method Detail |
---|
public javax.servlet.ServletOutputStream getOutputStream()
getOutputStream
in interface javax.servlet.ServletResponse
getOutputStream
in class javax.servlet.ServletResponseWrapper
public void setStatus(int code)
setStatus
in interface javax.servlet.http.HttpServletResponse
setStatus
in class javax.servlet.http.HttpServletResponseWrapper
public void sendError(int i, java.lang.String string) throws java.io.IOException
sendError
in interface javax.servlet.http.HttpServletResponse
sendError
in class javax.servlet.http.HttpServletResponseWrapper
i
- the status codestring
- the error message
java.io.IOException
public void sendError(int i) throws java.io.IOException
sendError
in interface javax.servlet.http.HttpServletResponse
sendError
in class javax.servlet.http.HttpServletResponseWrapper
i
- the status code
java.io.IOException
public void sendRedirect(java.lang.String string) throws java.io.IOException
sendRedirect
in interface javax.servlet.http.HttpServletResponse
sendRedirect
in class javax.servlet.http.HttpServletResponseWrapper
string
- the URL to redirect to
java.io.IOException
public void setStatus(int code, java.lang.String msg)
setStatus
in interface javax.servlet.http.HttpServletResponse
setStatus
in class javax.servlet.http.HttpServletResponseWrapper
public int getStatus()
public void setContentLength(int length)
setContentLength
in interface javax.servlet.ServletResponse
setContentLength
in class javax.servlet.ServletResponseWrapper
public int getContentLength()
public void setContentType(java.lang.String type)
setContentType
in interface javax.servlet.ServletResponse
setContentType
in class javax.servlet.ServletResponseWrapper
public java.lang.String getContentType()
getContentType
in interface javax.servlet.ServletResponse
getContentType
in class javax.servlet.ServletResponseWrapper
public java.io.PrintWriter getWriter() throws java.io.IOException
getWriter
in interface javax.servlet.ServletResponse
getWriter
in class javax.servlet.ServletResponseWrapper
java.io.IOException
public void addHeader(java.lang.String name, java.lang.String value)
addHeader
in interface javax.servlet.http.HttpServletResponse
addHeader
in class javax.servlet.http.HttpServletResponseWrapper
public void setHeader(java.lang.String name, java.lang.String value)
setHeader
in interface javax.servlet.http.HttpServletResponse
setHeader
in class javax.servlet.http.HttpServletResponseWrapper
addHeader(java.lang.String, java.lang.String)
public java.util.Collection getHeaders()
public void addCookie(javax.servlet.http.Cookie cookie)
addCookie
in interface javax.servlet.http.HttpServletResponse
addCookie
in class javax.servlet.http.HttpServletResponseWrapper
public java.util.Collection getCookies()
public void flushBuffer() throws java.io.IOException
flushBuffer
in interface javax.servlet.ServletResponse
flushBuffer
in class javax.servlet.ServletResponseWrapper
java.io.IOException
public void reset()
reset
in interface javax.servlet.ServletResponse
reset
in class javax.servlet.ServletResponseWrapper
public void resetBuffer()
resetBuffer
in interface javax.servlet.ServletResponse
resetBuffer
in class javax.servlet.ServletResponseWrapper
public void flush() throws java.io.IOException
java.io.IOException
public java.lang.String encodeRedirectUrl(java.lang.String s)
encodeRedirectUrl
in interface javax.servlet.http.HttpServletResponse
encodeRedirectUrl
in class javax.servlet.http.HttpServletResponseWrapper
public java.lang.String encodeUrl(java.lang.String s)
encodeUrl
in interface javax.servlet.http.HttpServletResponse
encodeUrl
in class javax.servlet.http.HttpServletResponseWrapper
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |