This object describes a HyperText Transport Protocol resource.
![]() | GetURL () const Get the URL for this resource. |
![]() | GetContentType () const Get the current content type for the resource. |
![]() | GetAuthority () const Get the current authority for the resource. |
![]() | SetAuthority ( const PHTTPAuthority & auth ) Set the current authority for the resource |
![]() | ClearAuthority () Set the current authority for the resource to unrestricted |
![]() | GetHitCount () const Get the current hit count for the resource. |
![]() | OnGET ( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PHTTPConnectionInfo & conInfo ) Handle the GET command passed from the HTTP socket. |
![]() | OnGETData ( PHTTPServer & server, const PURL & url, const PHTTPConnectionInfo & connectInfo, PHTTPRequest & request ) Load the data associated with a GET command. |
![]() | OnHEAD ( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PHTTPConnectionInfo & conInfo ) Handle the HEAD command passed from the HTTP socket. |
![]() | OnPOST ( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PStringToString & data, const PHTTPConnectionInfo & conInfo ) Handle the POST command passed from the HTTP socket. |
![]() | IsModifiedSince ( const PTime & when ) Check to see if the resource has been modified since the date specified. |
![]() | GetExpirationDate ( PTime & when ) Get a block of data (eg HTML) that the resource contains. |
![]() | CreateRequest ( const PURL & url, const PMIMEInfo & inMIME, const PMultipartFormInfoArray & multipartFormInfo, PHTTPServer & socket ) Create a new request block for this type of resource. |
![]() | LoadHeaders ( PHTTPRequest & request ) Get the headers for block of data (eg HTML) that the resource contains. |
![]() | LoadData ( PHTTPRequest & request, PCharArray & data ) Get a block of data that the resource contains. |
![]() | LoadText ( PHTTPRequest & request ) Get a block of text data (eg HTML) that the resource contains. |
![]() | OnLoadedText ( PHTTPRequest & request, PString & text ) This is called after the text has been loaded and may be used to customise or otherwise mangle a loaded piece of text. |
![]() | Post ( PHTTPRequest & request, const PStringToString & data, PHTML & replyMessage ) Get a block of data (eg HTML) that the resource contains. |
![]() | CheckAuthority ( PHTTPServer & server, const PHTTPRequest & request, const PHTTPConnectionInfo & conInfo ) See if the resource is authorised given the mime info |
![]() | OnGETOrHEAD ( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PHTTPConnectionInfo & conInfo, BOOL IsGet ) common code for GET and HEAD commands |
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
This object describes a HyperText Transport Protocol resource. A tree of these resources are available to the PHTTPSocket class.
The default action is to check the authorisation for the resource and
call the virtuals LoadHeaders() and OnGETData() to get
a resource to be sent to the socket.
The default action is to call the virtual LoadData() to get a
resource to be sent to the socket.
The default action is to check the authorisation for the resource and
call the virtual LoadHeaders() to get the header information to
be sent to the socket.
The default action is to check the authorisation for the resource and
call the virtual Post() function to handle the data being
received.
The default behaviour is to create a new PHTTPRequest instance.
The default behaviour is to call the LoadText() function and
if successful, call the OnLoadedText() function.
The default behaviour is to assert, one of LoadText() or
LoadData() functions must be overridden for correct operation.
The default action for this function is to do nothing.
The default action for this function is to do nothing and return
success.
const PString& GetContentType() const
PHTTPAuthority* GetAuthority() const
void SetAuthority( const PHTTPAuthority & auth )
void ClearAuthority()
DWORD GetHitCount() const
virtual BOOL OnGET( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PHTTPConnectionInfo & conInfo )
virtual BOOL OnGETData( PHTTPServer & server, const PURL & url, const PHTTPConnectionInfo & connectInfo, PHTTPRequest & request )
virtual BOOL OnHEAD( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PHTTPConnectionInfo & conInfo )
virtual BOOL OnPOST( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PStringToString & data, const PHTTPConnectionInfo & conInfo )
virtual BOOL IsModifiedSince( const PTime & when )
virtual BOOL GetExpirationDate( PTime & when )
virtual PHTTPRequest* CreateRequest( const PURL & url, const PMIMEInfo & inMIME, const PMultipartFormInfoArray & multipartFormInfo, PHTTPServer & socket )
virtual BOOL LoadHeaders( PHTTPRequest & request )
virtual BOOL LoadData( PHTTPRequest & request, PCharArray & data )
virtual PString LoadText( PHTTPRequest & request )
virtual void OnLoadedText( PHTTPRequest & request, PString & text )
virtual BOOL Post( PHTTPRequest & request, const PStringToString & data, PHTML & replyMessage )
virtual BOOL CheckAuthority( PHTTPServer & server, const PHTTPRequest & request, const PHTTPConnectionInfo & conInfo )
virtual BOOL OnGETOrHEAD( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PHTTPConnectionInfo & conInfo, BOOL IsGet )
Alphabetic index HTML hierarchy of classes or Java