Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress C++ API Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::ServletResponse

Group:  Servlet


Does not inherit

Local Index

Members

Header File

#include rwsf/servlet/ServletResponse.h

Description

rwsf::ServletResponse encapsulates a response to a client. For each request, the Agent creates an instance of this object and passes the instance to the servlet's service() method. Each response object contains an output buffer that holds the response payload. The methods in this class allow a servlet to access and set buffer information.

To write to the output buffer, either set the payload directly using setPayload() or construct an rwsf::ServletOutputStream via getOutputStream() or getWriter(). To get a copy of the contents of the output buffer, use the getPayload() function.

The following table lists methods that are either non-standard or not supported at this release.

appendPayload()

added method

getCharacterEncoding()

not supported in this release.

getLocale()

not supported in this release.

getPayload()

added method.

setLocale()

not supported in this release.

setPayload()

added method

Public Constructors

ServletResponse();

Public Destructors

virtual
~ServletResponse();

Public Member Functions

void
appendPayload(const std::string & payload);
void
flushBuffer();
rwsf::ServletOutputStream &
getOutputStream();
std::string
getPayload() const;
rwsf::ServletOutputStream &
getWriter();
bool
isCommitted() const;
void
reset();
void
resetBuffer();
void
setContentLength(int len);
void
setContentType(const std::string & type);
void
setPayload(const std::string & payload);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.