#include <ServletResponseWrapper.h>
Public Member Functions | |
ServletResponseWrapper (ServletResponse *response) | |
virtual ServletResponse * | getResponse () |
virtual const ServletResponse * | getResponse () const |
virtual void | setResponse (ServletResponse *response) |
virtual void | setCharacterEncoding (const std::string &charset) |
virtual std::ostream & | getOutputStream () |
virtual void | setContentLength (int len) |
virtual void | setContentType (const std::string &type) |
virtual std::string | getContentType () |
virtual void | setBufferSize (int size) |
virtual int | getBufferSize () |
virtual void | flushBuffer () |
virtual bool | isCommitted () |
virtual void | reset () |
virtual std::string | getCharacterEncoding () |
Private Attributes | |
ServletResponse * | response |
Definition at line 41 of file ServletResponseWrapper.h.
servlet::ServletResponseWrapper::ServletResponseWrapper | ( | ServletResponse * | response | ) | [inline] |
Creates a ServletResponse adaptor wrapping the given response object.
java.lang.IllegalArgumentException | if the response is null. |
Definition at line 50 of file ServletResponseWrapper.h.
virtual void servlet::ServletResponseWrapper::flushBuffer | ( | ) | [inline, virtual] |
The default behavior of this method is to call flushBuffer() on the wrapped response object->
Implements servlet::ServletResponse.
Definition at line 149 of file ServletResponseWrapper.h.
References servlet::ServletResponse::flushBuffer(), and response.
virtual int servlet::ServletResponseWrapper::getBufferSize | ( | ) | [inline, virtual] |
The default behavior of this method is to return getBufferSize() on the wrapped response object->
Implements servlet::ServletResponse.
Definition at line 140 of file ServletResponseWrapper.h.
References servlet::ServletResponse::getBufferSize(), and response.
virtual std::string servlet::ServletResponseWrapper::getCharacterEncoding | ( | ) | [inline, virtual] |
The default behavior of this method is to call reset() on the wrapped response object->
Implements servlet::ServletResponse.
Definition at line 175 of file ServletResponseWrapper.h.
References servlet::ServletResponse::getCharacterEncoding(), and response.
virtual std::string servlet::ServletResponseWrapper::getContentType | ( | ) | [inline, virtual] |
The default behavior of this method is to return getContentType() on the wrapped response object->
Implements servlet::ServletResponse.
Definition at line 124 of file ServletResponseWrapper.h.
References servlet::ServletResponse::getContentType(), and response.
virtual std::ostream& servlet::ServletResponseWrapper::getOutputStream | ( | ) | [inline, virtual] |
The default behavior of this method is to return getOutputStream() on the wrapped response object->
Implements servlet::ServletResponse.
Definition at line 96 of file ServletResponseWrapper.h.
References servlet::ServletResponse::getOutputStream(), and response.
virtual const ServletResponse* servlet::ServletResponseWrapper::getResponse | ( | ) | const [inline, virtual] |
virtual ServletResponse* servlet::ServletResponseWrapper::getResponse | ( | ) | [inline, virtual] |
Return the wrapped ServletResponse object.
Definition at line 61 of file ServletResponseWrapper.h.
References response.
Referenced by servlet::HttpServletResponseWrapper::_getHttpServletResponse().
virtual bool servlet::ServletResponseWrapper::isCommitted | ( | ) | [inline, virtual] |
The default behavior of this method is to return isCommitted() on the wrapped response object->
Implements servlet::ServletResponse.
Definition at line 157 of file ServletResponseWrapper.h.
References servlet::ServletResponse::isCommitted(), and response.
virtual void servlet::ServletResponseWrapper::reset | ( | ) | [inline, virtual] |
The default behavior of this method is to call reset() on the wrapped response object->
Implements servlet::ServletResponse.
Definition at line 166 of file ServletResponseWrapper.h.
References servlet::ServletResponse::reset(), and response.
virtual void servlet::ServletResponseWrapper::setBufferSize | ( | int | size | ) | [inline, virtual] |
The default behavior of this method is to call setBufferSize(int size) on the wrapped response object->
Implements servlet::ServletResponse.
Definition at line 132 of file ServletResponseWrapper.h.
References response, and servlet::ServletResponse::setBufferSize().
virtual void servlet::ServletResponseWrapper::setCharacterEncoding | ( | const std::string & | charset | ) | [inline, virtual] |
The default behavior of this method is to call setCharacterEncoding(std::string charset) on the wrapped response object.
Implements servlet::ServletResponse.
Reimplemented in container::IncludedResponseWrapper.
Definition at line 87 of file ServletResponseWrapper.h.
References response, and servlet::ServletResponse::setCharacterEncoding().
virtual void servlet::ServletResponseWrapper::setContentLength | ( | int | len | ) | [inline, virtual] |
The default behavior of this method is to call setContentLength(int len) on the wrapped response object->
Implements servlet::ServletResponse.
Reimplemented in container::IncludedResponseWrapper.
Definition at line 104 of file ServletResponseWrapper.h.
References response, and servlet::ServletResponse::setContentLength().
virtual void servlet::ServletResponseWrapper::setContentType | ( | const std::string & | type | ) | [inline, virtual] |
The default behavior of this method is to call setContentType(std::string type) on the wrapped response object->
Implements servlet::ServletResponse.
Reimplemented in container::IncludedResponseWrapper.
Definition at line 113 of file ServletResponseWrapper.h.
References response, and servlet::ServletResponse::setContentType().
virtual void servlet::ServletResponseWrapper::setResponse | ( | ServletResponse * | response | ) | [inline, virtual] |
Sets the response being wrapped.
java.lang.IllegalArgumentException | if the response is null. |
Definition at line 73 of file ServletResponseWrapper.h.
Definition at line 44 of file ServletResponseWrapper.h.
Referenced by flushBuffer(), getBufferSize(), getCharacterEncoding(), getContentType(), getOutputStream(), getResponse(), isCommitted(), reset(), setBufferSize(), setCharacterEncoding(), setContentLength(), and setContentType().