#include <http.h>
Inheritance diagram for PHTTPDirectory:
Public Member Functions | |
PHTTPDirectory (const PURL &url, const PDirectory &dir) | |
PHTTPDirectory (const PURL &url, const PDirectory &dir, const PHTTPAuthority &auth) | |
virtual PHTTPRequest * | CreateRequest (const PURL &url, const PMIMEInfo &inMIME, const PMultipartFormInfoArray &multipartFormInfo, PHTTPServer &socket) |
virtual BOOL | LoadHeaders (PHTTPRequest &request) |
virtual PString | LoadText (PHTTPRequest &request) |
void | EnableAuthorisation (const PString &realm) |
void | AllowDirectories (BOOL enable=TRUE) |
Protected Member Functions | |
BOOL | CheckAuthority (PHTTPServer &server, const PHTTPRequest &request, const PHTTPConnectionInfo &conInfo) |
BOOL | FindAuthorisations (const PDirectory &dir, PString &realm, PStringToString &authorisations) |
Protected Attributes | |
PDirectory | basePath |
PString | authorisationRealm |
BOOL | allowDirectoryListing |
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.
|
|
|
|
|
Enable or disable directory listings when a default directory file does not exist |
|
See if the resource is authorised given the mime info Reimplemented from PHTTPResource. |
|
Create a new request block for this type of resource.
Reimplemented from PHTTPFile. |
|
Enable or disable access control using .access files. A directory tree containing a _access file will require authorisation to allow access. This file has contains one or more lines, each containing a username and password seperated by a ":" character. The parameter sets the realm used for authorisation requests. An empty realm disables auhtorisation. |
|
|
|
Get the headers for block of data (eg HTML) that the resource contains. This will fill in all the fields of the
Reimplemented from PHTTPFile. |
|
Get a block of text data (eg HTML) that the resource contains. The default behaviour is to assert, one of #LoadText()# or #LoadData()# functions must be overridden for correct operation.
Reimplemented from PHTTPFile. |
|
|
|
|
|
|