Package com.aoapps.servlet.subrequest
Class HttpServletSubResponse
java.lang.Object
com.aoapps.servlet.subrequest.ServletSubResponse
com.aoapps.servlet.subrequest.HttpServletSubResponse
- All Implemented Interfaces:
IHttpServletSubResponse
,IServletSubResponse
,HttpServletResponse
,ServletResponse
-
Field Summary
Fields inherited from class com.aoapps.servlet.subrequest.ServletSubResponse
committed
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
ConstructorDescriptionHttpServletSubResponse
(HttpServletResponse resp, TempFileContext tempFileContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addDateHeader
(String name, long date) void
void
addIntHeader
(String name, int value) protected void
addLongHeader
(String name, long value) boolean
containsHeader
(String name) encodeRedirectUrl
(String url) Deprecated.encodeRedirectURL
(String url) Deprecated.Gets the cookies added on this response.getHeaders
(String name) Gets any redirect location.int
Gets any status message set.void
sendError
(int sc) void
void
sendRedirect
(String location) void
setContentLength
(int len) void
setContentLengthLong
(long len) void
setDateHeader
(String name, long date) void
void
setIntHeader
(String name, int value) protected void
setLongHeader
(String name, long value) void
setStatus
(int sc) void
Deprecated.Methods inherited from class com.aoapps.servlet.subrequest.ServletSubResponse
flushBuffer, getBufferSize, getCapturedOut, getCharacterEncoding, getContentType, getLocale, getOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setCharacterEncoding, setContentType, setLocale
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aoapps.servlet.subrequest.IServletSubResponse
getCapturedOut
Methods inherited from interface javax.servlet.ServletResponse
flushBuffer, getBufferSize, getCharacterEncoding, getContentType, getLocale, getOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setCharacterEncoding, setContentType, setLocale
-
Constructor Details
-
HttpServletSubResponse
-
-
Method Details
-
setContentLength
public void setContentLength(int len) - Specified by:
setContentLength
in interfaceServletResponse
- Overrides:
setContentLength
in classServletSubResponse
-
setContentLengthLong
public void setContentLengthLong(long len) - Specified by:
setContentLengthLong
in interfaceServletResponse
- Overrides:
setContentLengthLong
in classServletSubResponse
-
addCookie
- Specified by:
addCookie
in interfaceHttpServletResponse
-
getCookies
Description copied from interface:IHttpServletSubResponse
Gets the cookies added on this response.- Specified by:
getCookies
in interfaceIHttpServletSubResponse
-
containsHeader
- Specified by:
containsHeader
in interfaceHttpServletResponse
-
encodeURL
- Specified by:
encodeURL
in interfaceHttpServletResponse
-
encodeRedirectURL
- Specified by:
encodeRedirectURL
in interfaceHttpServletResponse
-
encodeUrl
Deprecated.- Specified by:
encodeUrl
in interfaceHttpServletResponse
-
encodeRedirectUrl
Deprecated.- Specified by:
encodeRedirectUrl
in interfaceHttpServletResponse
-
sendError
- Specified by:
sendError
in interfaceHttpServletResponse
- Throws:
IOException
-
sendError
- Specified by:
sendError
in interfaceHttpServletResponse
- Throws:
IOException
-
sendRedirect
- Specified by:
sendRedirect
in interfaceHttpServletResponse
- Throws:
IOException
-
getRedirectLocation
Description copied from interface:IHttpServletSubResponse
Gets any redirect location.- Specified by:
getRedirectLocation
in interfaceIHttpServletSubResponse
-
setDateHeader
- Specified by:
setDateHeader
in interfaceHttpServletResponse
-
addDateHeader
- Specified by:
addDateHeader
in interfaceHttpServletResponse
-
setHeader
- Specified by:
setHeader
in interfaceHttpServletResponse
-
addHeader
- Specified by:
addHeader
in interfaceHttpServletResponse
-
setIntHeader
- Specified by:
setIntHeader
in interfaceHttpServletResponse
-
addIntHeader
- Specified by:
addIntHeader
in interfaceHttpServletResponse
-
setLongHeader
-
addLongHeader
-
setStatus
public void setStatus(int sc) - Specified by:
setStatus
in interfaceHttpServletResponse
-
setStatus
Deprecated.- Specified by:
setStatus
in interfaceHttpServletResponse
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceHttpServletResponse
-
getStatusMessage
Description copied from interface:IHttpServletSubResponse
Gets any status message set.- Specified by:
getStatusMessage
in interfaceIHttpServletSubResponse
-
getHeader
TODO: Case insensitive?
- Specified by:
getHeader
in interfaceHttpServletResponse
-
getHeaders
TODO: Case insensitive?
- Specified by:
getHeaders
in interfaceHttpServletResponse
-
getHeaderNames
TODO: Case insensitive?
- Specified by:
getHeaderNames
in interfaceHttpServletResponse
-