class PHTTPDirectory

This object describes a HyperText Transport Protocol resource which is a set of files in a directory.

Inheritance:



Inherited from PHTTPFile:


Inherited from PHTTPResource:

Public Methods

oconst PURL& GetURL() const
oconst PString& GetContentType() const
oPHTTPAuthority* GetAuthority() const
ovoid SetAuthority( const PHTTPAuthority & auth )
ovoid ClearAuthority()
oDWORD GetHitCount() const
ovirtual BOOL OnGET( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PHTTPConnectionInfo & conInfo )
ovirtual BOOL OnGETData( PHTTPServer & server, const PURL & url, const PHTTPConnectionInfo & connectInfo, PHTTPRequest & request )
ovirtual BOOL OnHEAD( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PHTTPConnectionInfo & conInfo )
ovirtual BOOL OnPOST( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PStringToString & data, const PHTTPConnectionInfo & conInfo )
ovirtual BOOL OnPOSTData( PHTTPRequest & request, const PStringToString & data )
ovirtual BOOL IsModifiedSince( const PTime & when )
ovirtual BOOL GetExpirationDate( PTime & when )
ovirtual PHTTPRequest* CreateRequest( const PURL & url, const PMIMEInfo & inMIME, const PMultipartFormInfoArray & multipartFormInfo, PHTTPServer & socket )
ovirtual BOOL LoadHeaders( PHTTPRequest & request )
ovirtual void SendData( PHTTPRequest & request )
ovirtual BOOL LoadData( PHTTPRequest & request, PCharArray & data )
ovirtual PString LoadText( PHTTPRequest & request )
ovirtual void OnLoadedText( PHTTPRequest & request, PString & text )
ovirtual BOOL Post( PHTTPRequest & request, const PStringToString & data, PHTML & replyMessage )

Protected Fields

oPURL baseURL
oPString contentType
oPHTTPAuthority* authority
ovolatile DWORD hitCount

Protected Methods

ovirtual BOOL CheckAuthority( PHTTPServer & server, const PHTTPRequest & request, const PHTTPConnectionInfo & conInfo )
ovirtual BOOL OnGETOrHEAD( PHTTPServer & server, const PURL & url, const PMIMEInfo & info, const PHTTPConnectionInfo & conInfo, BOOL IsGet )


Inherited from PObject:

Public Methods

Run Time Type functions

I/O functions

Miscellaneous functions

Public Members

Comparison functions


Documentation

This object describes a HyperText Transport Protocol resource which is a set of files in a directory. The directory can be anywhere in the file system and is mapped to the specified URL location in the HTTP name space defined by the PHTTPSpace class.

All subdirectories and files are available as URL names in the HTTP name space. This effectively grafts a file system directory tree onto the URL name space tree.

See the PMIMEInfo class for more information on the mappings between file types and MIME types.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.