CPPSERV


Home Projects Jobs Clientele Contact
CPPSERV Documentation Download TODO Mailing lists Bug tracker News RSS Feed Browse source

servlet::ServletResponseWrapper Class Reference

#include <ServletResponseWrapper.h>

Inheritance diagram for servlet::ServletResponseWrapper:
Collaboration diagram for servlet::ServletResponseWrapper:

List of all members.


Public Member Functions

 ServletResponseWrapper (ServletResponse *response)
virtual ServletResponsegetResponse ()
virtual const ServletResponsegetResponse () 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

ServletResponseresponse

Detailed Description

ServletResponseWrapper Provides a convenient implementation of the ServletResponse interface that can be subclassed by developers wishing to adapt the response from a Servlet. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped response object.

Author:
Various
Version:
$Version$
Since:
v 2.3
See also:
javax.servlet.ServletResponse

Definition at line 41 of file ServletResponseWrapper.h.


Constructor & Destructor Documentation

servlet::ServletResponseWrapper::ServletResponseWrapper ( ServletResponse response  )  [inline]

Creates a ServletResponse adaptor wrapping the given response object.

Exceptions:
java.lang.IllegalArgumentException if the response is null.

Definition at line 50 of file ServletResponseWrapper.h.


Member Function Documentation

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

virtual std::string servlet::ServletResponseWrapper::getContentType (  )  [inline, virtual]

The default behavior of this method is to return getContentType() on the wrapped response object->

Since:
2.4

Implements servlet::ServletResponse.

Definition at line 124 of file ServletResponseWrapper.h.

References servlet::ServletResponse::getContentType(), and response.

Here is the call graph for this function:

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.

Here is the call graph for this function:

virtual const ServletResponse* servlet::ServletResponseWrapper::getResponse (  )  const [inline, virtual]

Definition at line 64 of file ServletResponseWrapper.h.

References response.

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

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.

Since:
2.4

Implements servlet::ServletResponse.

Reimplemented in container::IncludedResponseWrapper.

Definition at line 87 of file ServletResponseWrapper.h.

References response, and servlet::ServletResponse::setCharacterEncoding().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

virtual void servlet::ServletResponseWrapper::setResponse ( ServletResponse response  )  [inline, virtual]

Sets the response being wrapped.

Exceptions:
java.lang.IllegalArgumentException if the response is null.

Definition at line 73 of file ServletResponseWrapper.h.


Member Data Documentation


The documentation for this class was generated from the following file:

SourceForge.net Logo