PTLib  Version 2.10.4
PHTTPConnectionInfo Class Reference

This object describes the connectiono associated with a HyperText Transport Protocol request. More...

#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
bool IsPersistent () const
bool WasPersistent () const
bool IsProxyConnection () const
int GetMajorVersion () const
int GetMinorVersion () const
long GetEntityBodyLength () const
PTimeInterval GetPersistenceTimeout () const
 Get the maximum time a persistent connection may persist.
void SetPersistenceTimeout (const PTimeInterval &t)
 Set the maximum time a persistent connection may persist.
unsigned GetPersistenceMaximumTransations () const
 Get the maximum number of transations (GET/POST etc) for persistent connection.
void SetPersistenceMaximumTransations (unsigned m)
 Set the maximum number of transations (GET/POST etc) for persistent connection.
const PMultiPartListGetMultipartFormInfo () const
void ResetMultipartFormInfo ()
PString GetEntityBody () const

Protected Member Functions

PBoolean Initialise (PHTTPServer &server, PString &args)
bool DecodeMultipartFormInfo ()

Protected Attributes

PHTTP::Commands commandCode
PString commandName
PURL url
PMIMEInfo mimeInfo
bool isPersistent
bool wasPersistent
bool isProxyConnection
int majorVersion
int minorVersion
PString entityBody
long entityBodyLength
PTimeInterval persistenceTimeout
unsigned persistenceMaximum
PMultiPartList m_multipartFormInfo

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


Member Function Documentation

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

References commandName.

References entityBody.

References entityBodyLength.

int PHTTPConnectionInfo::GetMajorVersion ( ) const [inline]

References majorVersion.

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

References mimeInfo.

int PHTTPConnectionInfo::GetMinorVersion ( ) const [inline]

References minorVersion.

Get the maximum number of transations (GET/POST etc) for persistent connection.

If this is zero then there is no maximum.

References persistenceMaximum.

Get the maximum time a persistent connection may persist.

References persistenceTimeout.

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

References url.

PBoolean PHTTPConnectionInfo::Initialise ( PHTTPServer server,
PString args 
) [protected]
PBoolean PHTTPConnectionInfo::IsCompatible ( int  major,
int  minor 
) const
bool PHTTPConnectionInfo::IsPersistent ( ) const [inline]

References isPersistent.

bool PHTTPConnectionInfo::IsProxyConnection ( ) const [inline]

References isProxyConnection.

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

Set the maximum number of transations (GET/POST etc) for persistent connection.

If this is zero then there is no maximum.

References persistenceMaximum.

Set the maximum time a persistent connection may persist.

References persistenceTimeout.

bool PHTTPConnectionInfo::WasPersistent ( ) const [inline]

References wasPersistent.


Member Data Documentation

Referenced by IsPersistent().

Referenced by GetMajorVersion().

Referenced by GetMinorVersion().

Referenced by GetURL().

Referenced by WasPersistent().


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