| javax.servlet.http.HttpServletResponseWrapper org.apache.catalina.core.ApplicationHttpResponse
ApplicationHttpResponse | class ApplicationHttpResponse extends HttpServletResponseWrapper (Code) | | Wrapper around a javax.servlet.http.HttpServletResponse
that transforms an application response object (which might be the original
one passed to a servlet, or might be based on the 2.3
javax.servlet.http.HttpServletResponseWrapper class)
back into an internal org.apache.catalina.HttpResponse .
WARNING: Due to Java's lack of support for multiple
inheritance, all of the logic in ApplicationResponse is
duplicated in ApplicationHttpResponse . Make sure that you
keep these two classes in synchronization when making changes!
author: Craig R. McClanahan version: $Revision: 1.8 $ $Date: 2002/06/28 12:19:13 $ |
Field Summary | |
protected boolean | included | final protected static String | info Descriptive information about this implementation. | protected static StringManager | sm The string manager for this package. |
Method Summary | |
public void | addCookie(Cookie cookie) Disallow addCookie() calls on an included response. | public void | addDateHeader(String name, long value) Disallow addDateHeader() calls on an included response. | public void | addHeader(String name, String value) Disallow addHeader() calls on an included response. | public void | addIntHeader(String name, int value) Disallow addIntHeader() calls on an included response. | public String | getInfo() Return descriptive information about this implementation. | boolean | isIncluded() Return the included flag for this response. | public void | reset() Disallow reset() calls on a included response. | public void | sendError(int sc) Disallow sendError() calls on an included response. | public void | sendError(int sc, String msg) Disallow sendError() calls on an included response. | public void | sendRedirect(String location) Disallow sendRedirect() calls on an included response. | public void | setContentLength(int len) Disallow setContentLength() calls on an included response. | public void | setContentType(String type) Disallow setContentType() calls on an included response. | public void | setDateHeader(String name, long value) Disallow setDateHeader() calls on an included response. | public void | setHeader(String name, String value) Disallow setHeader() calls on an included response. | void | setIncluded(boolean included) Set the included flag for this response. | public void | setIntHeader(String name, int value) Disallow setIntHeader() calls on an included response. | public void | setLocale(Locale loc) Disallow setLocale() calls on an included response. | void | setResponse(HttpServletResponse response) Set the response that we are wrapping. | public void | setStatus(int sc) Disallow setStatus() calls on an included response. | public void | setStatus(int sc, String msg) Disallow setStatus() calls on an included response. |
included | protected boolean included(Code) | | Is this wrapped response the subject of an include()
call?
|
info | final protected static String info(Code) | | Descriptive information about this implementation.
|
ApplicationHttpResponse | public ApplicationHttpResponse(HttpServletResponse response)(Code) | | Construct a new wrapped response around the specified servlet response.
Parameters: response - The servlet response being wrapped |
ApplicationHttpResponse | public ApplicationHttpResponse(HttpServletResponse response, boolean included)(Code) | | Construct a new wrapped response around the specified servlet response.
Parameters: response - The servlet response being wrapped Parameters: included - true if this response is being processedby a RequestDispatcher.include() call |
addCookie | public void addCookie(Cookie cookie)(Code) | | Disallow addCookie() calls on an included response.
Parameters: cookie - The new cookie |
addDateHeader | public void addDateHeader(String name, long value)(Code) | | Disallow addDateHeader() calls on an included response.
Parameters: name - The new header name Parameters: value - The new header value |
addHeader | public void addHeader(String name, String value)(Code) | | Disallow addHeader() calls on an included response.
Parameters: name - The new header name Parameters: value - The new header value |
addIntHeader | public void addIntHeader(String name, int value)(Code) | | Disallow addIntHeader() calls on an included response.
Parameters: name - The new header name Parameters: value - The new header value |
getInfo | public String getInfo()(Code) | | Return descriptive information about this implementation.
|
isIncluded | boolean isIncluded()(Code) | | Return the included flag for this response.
|
reset | public void reset()(Code) | | Disallow reset() calls on a included response.
exception: IllegalStateException - if the response has alreadybeen committed |
sendError | public void sendError(int sc) throws IOException(Code) | | Disallow sendError() calls on an included response.
Parameters: sc - The new status code exception: IOException - if an input/output error occurs |
sendError | public void sendError(int sc, String msg) throws IOException(Code) | | Disallow sendError() calls on an included response.
Parameters: sc - The new status code Parameters: msg - The new message exception: IOException - if an input/output error occurs |
sendRedirect | public void sendRedirect(String location) throws IOException(Code) | | Disallow sendRedirect() calls on an included response.
Parameters: location - The new location exception: IOException - if an input/output error occurs |
setContentLength | public void setContentLength(int len)(Code) | | Disallow setContentLength() calls on an included response.
Parameters: len - The new content length |
setContentType | public void setContentType(String type)(Code) | | Disallow setContentType() calls on an included response.
Parameters: type - The new content type |
setDateHeader | public void setDateHeader(String name, long value)(Code) | | Disallow setDateHeader() calls on an included response.
Parameters: name - The new header name Parameters: value - The new header value |
setHeader | public void setHeader(String name, String value)(Code) | | Disallow setHeader() calls on an included response.
Parameters: name - The new header name Parameters: value - The new header value |
setIncluded | void setIncluded(boolean included)(Code) | | Set the included flag for this response.
Parameters: included - The new included flag |
setIntHeader | public void setIntHeader(String name, int value)(Code) | | Disallow setIntHeader() calls on an included response.
Parameters: name - The new header name Parameters: value - The new header value |
setLocale | public void setLocale(Locale loc)(Code) | | Disallow setLocale() calls on an included response.
Parameters: loc - The new locale |
setResponse | void setResponse(HttpServletResponse response)(Code) | | Set the response that we are wrapping.
Parameters: response - The new wrapped response |
setStatus | public void setStatus(int sc)(Code) | | Disallow setStatus() calls on an included response.
Parameters: sc - The new status code |
setStatus | public void setStatus(int sc, String msg)(Code) | | Disallow setStatus() calls on an included response.
Parameters: sc - The new status code Parameters: msg - The new message |
|
|