#include <HTTPRequest.h>
Public Types | |
| enum | ERequestProperty { etAuthorization = 0, etFrom = 1, etIfModifiedSince = 2, etReferer = 3, etUserAgent = 4, etAccept = 5, etAcceptCharset = 6, etAcceptEncoding = 7, etAcceptLanguage = 8 } |
Public Member Functions | |
| THTTPRequest (THTTProtocol::EHTTPVersion eVersion=THTTProtocol::etVersion_1_0) | |
| virtual void | reset () |
| virtual Retval | setRequestProperty (ERequestProperty eType, const IString &rValue) |
| virtual void | setData (const IString &rData, bool bAddContentProperties=false) |
| THTTProtocol::ERequestMethod | getMethod () const |
| TString | getRessource () const |
| void | setMethod (THTTProtocol::ERequestMethod eMethod) |
| void | setRessource (const IString &rRessource) |
| TString | toString () const |
Static Public Member Functions | |
| static Retval | parse (const IString &rIn, THTTPRequest *&rpRequest) |
Protected Member Functions | |
| virtual | ~THTTPRequest () |
This class wrapps a HTTP Request object. It implements fully the HTTP 1.0 protocol (RFC1945)
This type defines request header fields (properties)
| THTTPRequest::THTTPRequest | ( | THTTProtocol::EHTTPVersion | eVersion = THTTProtocol::etVersion_1_0 ) |
Creates a HTTP Request Object
| eVersion | : Protocol version of the HTML request |
| THTTPRequest::~THTTPRequest | ( | ) | [protected, virtual] |
Destroys the HTTP Request Object
| THTTProtocol::ERequestMethod zeus::THTTPRequest::getMethod | ( | ) | const [inline] |
Returns the method of the HTTP
| TString zeus::THTTPRequest::getRessource | ( | ) | const [inline] |
Returns the uri of a ressource
| Retval THTTPRequest::parse | ( | const IString & | rIn, |
| THTTPRequest *& | rpRequest | ||
| ) | [static] |
This Method parses a incomming request
| rIn | : Input data |
| rpRequest | : Return value |
| RET_NOERROR | : Parsing ok |
| RET_REQUEST_FAILED | : wrong format |
| void THTTPRequest::reset | ( | ) | [virtual] |
Resets the request to default
Reimplemented from zeus::TAbstractHTTPData.
| void zeus::THTTPRequest::setData | ( | const IString & | rData, |
| bool | bAddContentProperties = false |
||
| ) | [inline, virtual] |
Reimplemented from zeus::TAbstractHTTPData.
| void THTTPRequest::setMethod | ( | THTTProtocol::ERequestMethod | eMethod ) |
Sets a method of the HTTP
| eMethod | : method of the request |
| Retval THTTPRequest::setRequestProperty | ( | ERequestProperty | eType, |
| const IString & | rValue | ||
| ) | [virtual] |
Sets the request property values
| eType | : Type of the request property |
| rValue | : Value of the property |
| void THTTPRequest::setRessource | ( | const IString & | rRessource ) |
Sets an uri of a ressource
| rRessource | : Ressource of the request |
| TString THTTPRequest::toString | ( | ) | const |
Returns a string which contains the HTTP Request
Reimplemented from zeus::TZObject.