javax.servlet.ServletResponse
| Modifier and Type | Field and Description |
|---|---|
| private ServletResponse |
| Access | Constructor and Description |
|---|---|
| public | ServletResponseWrapper(ServletResponse
the response)ServletResponse to be wrappedCreates a ServletResponse adaptor wrapping the given response object. |
| Modifier and Type | Method and Description |
|---|---|
| public void | flushBuffer()
Implements javax. |
| public int | getBufferSize()
Implements javax. |
| public String | getCharacterEncoding()
Implements javax. |
| public String | getContentType()
Implements javax. |
| public Locale | getLocale()
Implements javax. |
| public ServletOutputStream | getOutputStream()
Implements javax. |
| public ServletResponse | |
| public PrintWriter | getWriter()
Implements javax. |
| public boolean | isCommitted()
Implements javax. |
| public boolean | Returns: true if this ServletResponseWrapper wraps the given ServletResponse instance, false otherwisethe ServletResponse instance to search for wrapped)Checks (recursively) if this ServletResponseWrapper wraps the given
|
| public boolean | Returns: true if this ServletResponseWrapper wraps a ServletResponse of the given class type, false otherwisethe ServletResponse class type to
search for wrappedType)Checks (recursively) if this ServletResponseWrapper wraps a
|
| public void | reset()
Implements javax. |
| public void | resetBuffer()
Implements javax. |
| public void | setBufferSize(int
the preferred buffer size size)Implements javax. |
| 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 javax. |
| public void | setContentLength(int
an integer specifying the length of the
content being returned to the client; sets the Content-Length header len)Implements javax. |
| public void | setContentLengthLong(long
a long specifying the length of the
content being returned to the client; sets the Content-Length header len)Implements javax. |
| public void | setContentType(String
a type)String specifying the MIME
type of the contentImplements javax. |
| public void | setLocale(Locale
the locale of the response loc)Implements javax. |
| public void | setResponse(ServletResponse
the response)ServletResponse to be installedSets the response being wrapped. |
| 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 javax. The default behavior of this method is to call flushBuffer() on the wrapped response object.
| |
| getBufferSize | back to summary |
|---|---|
| public int getBufferSize() Implements javax. The default behavior of this method is to return getBufferSize() on the wrapped response object.
| |
| getCharacterEncoding | back to summary |
|---|---|
| public String getCharacterEncoding() Implements javax. The default behavior of this method is to return getCharacterEncoding() on the wrapped response object.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements javax. The default behavior of this method is to return getContentType() on the wrapped response object.
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Implements javax. 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 javax. 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 javax. The default behavior of this method is to return getWriter() on the wrapped response object.
| |
| isCommitted | back to summary |
|---|---|
| public boolean isCommitted() Implements javax. The default behavior of this method is to return isCommitted() on the wrapped response object.
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(ServletResponse wrapped) Checks (recursively) if this ServletResponseWrapper wraps the given
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> wrappedType) Checks (recursively) if this ServletResponseWrapper wraps a
| |
| reset | back to summary |
|---|---|
| public void reset() Implements javax. The default behavior of this method is to call reset() on the wrapped response object. | |
| resetBuffer | back to summary |
|---|---|
| public void resetBuffer() Implements javax. 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 javax. 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 javax. 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 javax. 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 len) Implements javax. 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 javax. 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 javax. 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.
| |