jakarta.servlet.ServletResponse
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final ResourceBundle | |
| private ServletResponse |
| Access | Constructor and Description |
|---|---|
| public | ServletResponseWrapper(ServletResponse
The response to wrap response)Creates a ServletResponse adaptor wrapping the given response object. |
| Modifier and Type | Method and Description |
|---|---|
| public void | flushBuffer()
Implements jakarta. The default behavior of this method is to call flushBuffer() on the wrapped response object. |
| public int | getBufferSize()
Implements jakarta. The default behavior of this method is to return getBufferSize() on the wrapped response object. |
| public String | getCharacterEncoding()
Implements jakarta. The default behavior of this method is to return getCharacterEncoding() on the wrapped response object. |
| public String | getContentType()
Implements jakarta. The default behavior of this method is to return getContentType() on the wrapped response object. |
| public Locale | getLocale()
Implements jakarta. The default behavior of this method is to return getLocale() on the wrapped response object. |
| public ServletOutputStream | getOutputStream()
Implements jakarta. The default behavior of this method is to return getOutputStream() on the wrapped response object. |
| public ServletResponse | |
| public PrintWriter | getWriter()
Implements jakarta. The default behavior of this method is to return getWriter() on the wrapped response object. |
| public boolean | isCommitted()
Implements jakarta. The default behavior of this method is to return isCommitted() on the wrapped response object. |
| public boolean | Returns: true if the response wrapped by this wrapper (or series of wrappers) is the same as the
supplied response, otherwise falseThe response to compare to the wrapped response wrapped)TODO SERVLET3 - Add comments |
| public boolean | Returns: true if the response wrapped by this wrapper (or series of wrappers) is the same type as the
supplied type, otherwise falseThe class to compare to the class of the wrapped response wrappedType)TODO SERVLET3 - Add comments |
| public void | reset()
Implements jakarta. The default behavior of this method is to call reset() on the wrapped response object. |
| public void | resetBuffer()
Implements jakarta. The default behavior of this method is to call resetBuffer() on the wrapped response object. |
| public void | setBufferSize(int
the preferred buffer size size)Implements jakarta. The default behavior of this method is to call setBufferSize(int size) on the wrapped response object. |
| public void | setCharacterEncoding(String
a String specifying only the character set defined by IANA Character Sets
(http://www.iana.org/assignments/character-sets) charset)Implements jakarta. The default behavior of this method is to call setCharacterEncoding(String charset) on the wrapped response object. |
| public void | setContentLength(int
an integer specifying the length of the content being returned to the client; sets the Content-Length
header len)Implements jakarta. The default behavior of this method is to call setContentLength(int len) on the wrapped response object. |
| public void | setContentLengthLong(long
an integer specifying the length of the content being returned to the client; sets the
Content-Length header length)Implements jakarta. The default behavior of this method is to call setContentLengthLong(long len) on the wrapped response object. |
| public void | setContentType(String
a type)String specifying the MIME type of the contentImplements jakarta. The default behavior of this method is to call setContentType(String type) on the wrapped response object. |
| public void | setLocale(Locale
the locale of the response loc)Implements jakarta. The default behavior of this method is to call setLocale(Locale loc) on the wrapped response object. |
| public void |
| LSTRING_FILE | back to summary |
|---|---|
| private static final String LSTRING_FILE | |
| lStrings | back to summary |
|---|---|
| private static final ResourceBundle lStrings | |
| response | back to summary |
|---|---|
| private ServletResponse response | |
| ServletResponseWrapper | back to summary |
|---|---|
| public ServletResponseWrapper(ServletResponse response) Creates a ServletResponse adaptor wrapping the given response object.
| |
| flushBuffer | back to summary |
|---|---|
| public void flushBuffer() throws IOException Implements jakarta. The default behavior of this method is to call flushBuffer() on the wrapped response object.
| |
| getBufferSize | back to summary |
|---|---|
| public int getBufferSize() Implements jakarta. The default behavior of this method is to return getBufferSize() on the wrapped response object.
| |
| getCharacterEncoding | back to summary |
|---|---|
| public String getCharacterEncoding() Implements jakarta. The default behavior of this method is to return getCharacterEncoding() on the wrapped response object.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements jakarta. The default behavior of this method is to return getContentType() on the wrapped response object.
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Implements jakarta. The default behavior of this method is to return getLocale() on the wrapped response object.
| |
| getOutputStream | back to summary |
|---|---|
| public ServletOutputStream getOutputStream() throws IOException Implements jakarta. The default behavior of this method is to return getOutputStream() on the wrapped response object.
| |
| getResponse | back to summary |
|---|---|
| public ServletResponse getResponse() Return the wrapped ServletResponse object.
| |
| getWriter | back to summary |
|---|---|
| public PrintWriter getWriter() throws IOException Implements jakarta. The default behavior of this method is to return getWriter() on the wrapped response object.
| |
| isCommitted | back to summary |
|---|---|
| public boolean isCommitted() Implements jakarta. The default behavior of this method is to return isCommitted() on the wrapped response object.
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(ServletResponse wrapped) TODO SERVLET3 - Add comments
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> wrappedType) TODO SERVLET3 - Add comments
| |
| reset | back to summary |
|---|---|
| public void reset() Implements jakarta. The default behavior of this method is to call reset() on the wrapped response object.
| |
| resetBuffer | back to summary |
|---|---|
| public void resetBuffer() Implements jakarta. The default behavior of this method is to call resetBuffer() on the wrapped response object.
| |
| setBufferSize | back to summary |
|---|---|
| public void setBufferSize(int size) Implements jakarta. The default behavior of this method is to call setBufferSize(int size) on the wrapped response object.
| |
| setCharacterEncoding | back to summary |
|---|---|
| public void setCharacterEncoding(String charset) Implements jakarta. The default behavior of this method is to call setCharacterEncoding(String charset) on the wrapped response object.
| |
| setContentLength | back to summary |
|---|---|
| public void setContentLength(int len) Implements jakarta. The default behavior of this method is to call setContentLength(int len) on the wrapped response object.
| |
| setContentLengthLong | back to summary |
|---|---|
| public void setContentLengthLong(long length) Implements jakarta. The default behavior of this method is to call setContentLengthLong(long len) on the wrapped response object.
| |
| setContentType | back to summary |
|---|---|
| public void setContentType(String type) Implements jakarta. The default behavior of this method is to call setContentType(String type) on the wrapped response object.
| |
| setLocale | back to summary |
|---|---|
| public void setLocale(Locale loc) Implements jakarta. The default behavior of this method is to call setLocale(Locale loc) on the wrapped response object.
| |
| setResponse | back to summary |
|---|---|
| public void setResponse(ServletResponse response) Sets the response being wrapped.
| |