Class ServletWrapperResponse
java.lang.Object
org.ametys.core.servletwrapper.servlet.ServletWrapperResponse
- All Implemented Interfaces:
HttpServletResponse,ServletResponse
This class is a filter for the communication between Tomcat and Cocoon. This one concerns the response request.
All the methods of the HttpServletResponse interface are implemented.
Only one of them will be usefull : sendRedirect(). This method uses the cocoon redirector to send the request.
Only one of them will be usefull : sendRedirect(). This method uses the cocoon redirector to send the request.
-
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
ConstructorsConstructorDescriptionServletWrapperResponse(HttpServletResponse req, Redirector redirect) Constructor of this filter. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddDateHeader(String name, long date) voidvoidaddIntHeader(String name, int value) booleancontainsHeader(String name) encodeRedirectUrl(String url) Deprecated.encodeRedirectURL(String url) Deprecated.voidintgetHeaders(String name) intbooleanvoidreset()voidvoidsendError(int sc) voidvoidsendRedirect(String location) voidsetBufferSize(int size) voidsetCharacterEncoding(String arg0) voidsetContentLength(int length) voidsetContentLengthLong(long len) voidsetContentType(String type) voidsetDateHeader(String name, long date) voidvoidsetIntHeader(String name, int value) voidvoidsetStatus(int sc) voidDeprecated.
-
Constructor Details
-
ServletWrapperResponse
Constructor of this filter.- Parameters:
req- the response Httpservletredirect- the Cocoon redirector.
-
-
Method Details
-
addHeader
- Specified by:
addHeaderin interfaceHttpServletResponse
-
addDateHeader
- Specified by:
addDateHeaderin interfaceHttpServletResponse
-
setIntHeader
- Specified by:
setIntHeaderin interfaceHttpServletResponse
-
setDateHeader
- Specified by:
setDateHeaderin interfaceHttpServletResponse
-
getHeader
- Specified by:
getHeaderin interfaceHttpServletResponse
-
getHeaders
- Specified by:
getHeadersin interfaceHttpServletResponse
-
getHeaderNames
- Specified by:
getHeaderNamesin interfaceHttpServletResponse
-
setContentType
- Specified by:
setContentTypein interfaceServletResponse
-
encodeURL
- Specified by:
encodeURLin interfaceHttpServletResponse
-
encodeUrl
Deprecated.- Specified by:
encodeUrlin interfaceHttpServletResponse
-
encodeRedirectURL
- Specified by:
encodeRedirectURLin interfaceHttpServletResponse
-
encodeRedirectUrl
Deprecated.- Specified by:
encodeRedirectUrlin interfaceHttpServletResponse
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfaceServletResponse
-
setContentLength
- Specified by:
setContentLengthin interfaceServletResponse
-
setContentLengthLong
- Specified by:
setContentLengthLongin interfaceServletResponse
-
isCommitted
- Specified by:
isCommittedin interfaceServletResponse
-
getOutputStream
- Specified by:
getOutputStreamin interfaceServletResponse- Throws:
IOException
-
setStatus
- Specified by:
setStatusin interfaceHttpServletResponse
-
setStatus
Deprecated.- Specified by:
setStatusin interfaceHttpServletResponse
-
getStatus
- Specified by:
getStatusin interfaceHttpServletResponse
-
reset
- Specified by:
resetin interfaceServletResponse
-
getBufferSize
- Specified by:
getBufferSizein interfaceServletResponse
-
flushBuffer
- Specified by:
flushBufferin interfaceServletResponse- Throws:
IOException
-
setBufferSize
- Specified by:
setBufferSizein interfaceServletResponse
-
sendRedirect
- Specified by:
sendRedirectin interfaceHttpServletResponse- Throws:
IOException
-
setHeader
- Specified by:
setHeaderin interfaceHttpServletResponse
-
getLocale
- Specified by:
getLocalein interfaceServletResponse
-
setLocale
- Specified by:
setLocalein interfaceServletResponse
-
sendError
- Specified by:
sendErrorin interfaceHttpServletResponse- Throws:
IOException
-
sendError
- Specified by:
sendErrorin interfaceHttpServletResponse- Throws:
IOException
-
containsHeader
- Specified by:
containsHeaderin interfaceHttpServletResponse
-
addIntHeader
- Specified by:
addIntHeaderin interfaceHttpServletResponse
-
getWriter
- Specified by:
getWriterin interfaceServletResponse- Throws:
IOException
-
addCookie
- Specified by:
addCookiein interfaceHttpServletResponse
-
getContentType
- Specified by:
getContentTypein interfaceServletResponse
-
resetBuffer
- Specified by:
resetBufferin interfaceServletResponse
-
setCharacterEncoding
- Specified by:
setCharacterEncodingin interfaceServletResponse
-