PHTTPConnectionInfo Class Reference

#include <http.h>

Inheritance diagram for PHTTPConnectionInfo:

PObject List of all members.

Public Member Functions

 PHTTPConnectionInfo ()
PHTTP::Commands GetCommandCode () const
const PStringGetCommandName () const
const PURLGetURL () const
const PMIMEInfoGetMIME () const
void SetMIME (const PString &tag, const PString &value)
PBoolean IsCompatible (int major, int minor) const
PBoolean IsPersistant () const
PBoolean WasPersistant () const
PBoolean IsProxyConnection () const
int GetMajorVersion () const
int GetMinorVersion () const
long GetEntityBodyLength () const
PTimeInterval GetPersistenceTimeout () const
void SetPersistenceTimeout (const PTimeInterval &t)
unsigned GetPersistenceMaximumTransations () const
void SetPersistenceMaximumTransations (unsigned m)
const PMultipartFormInfoArray & GetMultipartFormInfo () const
void ResetMultipartFormInfo ()
PString GetEntityBody () const

Protected Member Functions

PBoolean Initialise (PHTTPServer &server, PString &args)
void DecodeMultipartFormInfo (const PString &type, const PString &entityBody)

Protected Attributes

PHTTP::Commands commandCode
PString commandName
PURL url
PMIMEInfo mimeInfo
PBoolean isPersistant
PBoolean wasPersistant
PBoolean isProxyConnection
int majorVersion
int minorVersion
PString entityBody
long entityBodyLength
PTimeInterval persistenceTimeout
unsigned persistenceMaximum
PMultipartFormInfoArray multipartFormInfoArray

Friends

class PHTTPServer

Detailed Description

This object describes the connectiono associated with a HyperText Transport Protocol request. This information is required by handler functions on PHTTPResource# descendant classes to manage the connection correctly.


Constructor & Destructor Documentation

PHTTPConnectionInfo::PHTTPConnectionInfo (  ) 


Member Function Documentation

PHTTP::Commands PHTTPConnectionInfo::GetCommandCode (  )  const [inline]

const PString& PHTTPConnectionInfo::GetCommandName (  )  const [inline]

const PURL& PHTTPConnectionInfo::GetURL (  )  const [inline]

const PMIMEInfo& PHTTPConnectionInfo::GetMIME (  )  const [inline]

void PHTTPConnectionInfo::SetMIME ( const PString tag,
const PString value 
)

PBoolean PHTTPConnectionInfo::IsCompatible ( int  major,
int  minor 
) const

PBoolean PHTTPConnectionInfo::IsPersistant (  )  const [inline]

PBoolean PHTTPConnectionInfo::WasPersistant (  )  const [inline]

PBoolean PHTTPConnectionInfo::IsProxyConnection (  )  const [inline]

int PHTTPConnectionInfo::GetMajorVersion (  )  const [inline]

int PHTTPConnectionInfo::GetMinorVersion (  )  const [inline]

long PHTTPConnectionInfo::GetEntityBodyLength (  )  const [inline]

PTimeInterval PHTTPConnectionInfo::GetPersistenceTimeout (  )  const [inline]

Get the maximum time a persistent connection may persist.

void PHTTPConnectionInfo::SetPersistenceTimeout ( const PTimeInterval t  )  [inline]

Set the maximum time a persistent connection may persist.

unsigned PHTTPConnectionInfo::GetPersistenceMaximumTransations (  )  const [inline]

Get the maximum number of transations (GET/POST etc) for persistent connection. If this is zero then there is no maximum.

void PHTTPConnectionInfo::SetPersistenceMaximumTransations ( unsigned  m  )  [inline]

Set the maximum number of transations (GET/POST etc) for persistent connection. If this is zero then there is no maximum.

const PMultipartFormInfoArray& PHTTPConnectionInfo::GetMultipartFormInfo (  )  const [inline]

void PHTTPConnectionInfo::ResetMultipartFormInfo (  )  [inline]

PString PHTTPConnectionInfo::GetEntityBody (  )  const [inline]

PBoolean PHTTPConnectionInfo::Initialise ( PHTTPServer server,
PString args 
) [protected]

void PHTTPConnectionInfo::DecodeMultipartFormInfo ( const PString type,
const PString entityBody 
) [protected]


Friends And Related Function Documentation

friend class PHTTPServer [friend]


Member Data Documentation

PHTTP::Commands PHTTPConnectionInfo::commandCode [protected]

PString PHTTPConnectionInfo::commandName [protected]

PURL PHTTPConnectionInfo::url [protected]

PMIMEInfo PHTTPConnectionInfo::mimeInfo [protected]

PBoolean PHTTPConnectionInfo::isPersistant [protected]

PBoolean PHTTPConnectionInfo::wasPersistant [protected]

PBoolean PHTTPConnectionInfo::isProxyConnection [protected]

int PHTTPConnectionInfo::majorVersion [protected]

int PHTTPConnectionInfo::minorVersion [protected]

PString PHTTPConnectionInfo::entityBody [protected]

long PHTTPConnectionInfo::entityBodyLength [protected]

PTimeInterval PHTTPConnectionInfo::persistenceTimeout [protected]

unsigned PHTTPConnectionInfo::persistenceMaximum [protected]

PMultipartFormInfoArray PHTTPConnectionInfo::multipartFormInfoArray [protected]


The documentation for this class was generated from the following file:
Generated on Mon Dec 10 11:18:59 2007 for PTLib by  doxygen 1.5.1