Google APIs Client Library for C++
WebServerRequest Class Reference

Abstract class for invocations into the AbstractWebServerThis is different from the HttpRequest class in the transport layer which are client-side requests. More...

#include "client/util/abstract_webserver.h"

List of all members.

Public Member Functions

 WebServerRequest (const StringPiece &method, const StringPiece &url, WebServerResponse *response_storage)
 Standard constructor.
virtual ~WebServerRequest ()
 Standard destructor.
const string & method () const
const ParsedUrlparsed_url () const
WebServerResponseresponse () const
virtual bool GetCookieValue (const char *key, string *value) const =0
virtual bool GetHeaderValue (const char *key, string *value) const =0

Detailed Description

Abstract class for invocations into the AbstractWebServer

This is different from the HttpRequest class in the transport layer which are client-side requests.

These are server side requests.

Requests are created by the AbstractWebServer when it receives an invocation.


Constructor & Destructor Documentation

WebServerRequest ( const StringPiece &  method,
const StringPiece &  url,
WebServerResponse response_storage 
)

Standard constructor.

Parameters:
[in]methodThe HTTP method called (e.g. GET).
[in]urlThe url that was invoked.
[in]response_storageThe repsonse object to bind to the request.
virtual ~WebServerRequest ( ) [virtual]

Standard destructor.


Member Function Documentation

virtual bool GetCookieValue ( const char *  key,
string *  value 
) const [pure virtual]
virtual bool GetHeaderValue ( const char *  key,
string *  value 
) const [pure virtual]
const string& method ( ) const [inline]
const ParsedUrl& parsed_url ( ) const [inline]
WebServerResponse* response ( ) const [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines