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

rwsf::HttpServletResponse

Group:  Servlet


rwsf::HttpServletResponserwsf::ServletResponse

Local Index

Members

Header File

#include rwsf/servlet/http/HttpServletResponse.h

Description

rwsf::HttpServletResponse provides an HTTP-specific response object and provides a method for accessing HTTP-specific functionality, such as cookies and HTTP headers. For each request from a client, an HTTP servlet receives an instance of rwsf::HttpServletReponse that represents the response to the request.

Public Enums

StatusCode { SC_CONTINUE, SC_SWITCHING_PROTOCOLS, SC_OK, SC_CREATED, SC_ACCEPTED, SC_NON_AUTHORITATIVE_INFORMATION, SC_NO_CONTENT, SC_RESET_CONTENT, SC_PARTIAL_CONTENT, SC_MULTIPLE_CHOICES, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_SEE_OTHER, SC_NOT_MODIFIED, SC_USE_PROXY, SC_BAD_REQUEST, SC_UNAUTHORIZED, SC_PAYMENT_REQUIRED, SC_FORBIDDEN, SC_NOT_FOUND, SC_METHOD_NOT_ALLOWED, SC_NOT_ACCEPTABLE, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_TIMEOUT, SC_CONFLICT, SC_GONE, SC_LENGTH_REQUIRED, SC_PRECONDITION_FAILED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_URI_TOO_LONG, SC_UNSUPPORTED_MEDIA_TYPE, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_EXPECTATION_FAILED, SC_INTERNAL_SERVER_ERROR, SC_NOT_IMPLEMENTED, SC_BAD_GATEWAY, SC_SERVICE_UNAVAILABLE, SC_GATEWAY_TIMEOUT, SC_HTTP_VERSION_NOT_SUPPORTED }

Public Destructors

virtual
~HttpServletResponse();

Public Member Functions

void
addCookie(const rwsf::Cookie & cookie);
void
addDateHeader(const std::string & name,
    const rwsf::DateTime & date);
void
addHeader(const std::string & name,
    const std::string & value);
void
addIntHeader(const std::string & name,
    int value);
bool
containsHeader(const std::string & name) const;
std::string
encodeRedirectURL(const std::string & url) const;
std::string
encodeURL(const std::string & url) const;
void
flushBuffer();
std::string
getCharacterEncoding() const;
int
getContentLength() const;
std::string
getContentType() const;
void
sendError(int sc,
    const std::string & msg);
void
sendError(int sc);
void
sendRedirect(const std::string & location);
void
setContentLength(int contentLength);
void
setContentType(const std::string & contentType);
void
setDateHeader(const std::string & name,
    const rwsf::DateTime & date);
void
setHeader(const std::string & name,
    const std::string & value);
void
setIntHeader(const std::string & name,
    int value);
void
setStatus(int sc);
void
setStatus(int sc,
    const std::string & msg);


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.