Public Member Functions |
| PHTTPConfig (const PURL &url, const PString §ion) |
| PHTTPConfig (const PURL &url, const PString §ion, const PHTTPAuthority &auth) |
| PHTTPConfig (const PURL &url, const PString §ion, const PString &html) |
| PHTTPConfig (const PURL &url, const PString §ion, const PString &html, const PHTTPAuthority &auth) |
virtual void | 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.
|
virtual PBoolean | Post (PHTTPRequest &request, const PStringToString &data, PHTML &replyMessage) |
| Get a block of data (eg HTML) that the resource contains.
|
void | LoadFromConfig () |
| Load all of the values for the resource from the configuration.
|
const PString & | GetConfigSection () const |
| Get the configuration file section that the page will alter.
|
void | SetConfigSection (const PString §) |
PHTTPField * | AddSectionField (PHTTPField *sectionFld, const char *prefix=NULL, const char *suffix=NULL) |
| Add a field that will determine the name opf the secontion into which the other fields are to be added as keys.
|
void | AddNewKeyFields (PHTTPField *keyFld, PHTTPField *valFld) |
| Add fields to the HTTP form for adding a new key to the config file section.
|
| PHTTPForm (const PURL &url) |
| PHTTPForm (const PURL &url, const PHTTPAuthority &auth) |
| PHTTPForm (const PURL &url, const PString &html) |
| PHTTPForm (const PURL &url, const PString &html, const PHTTPAuthority &auth) |
PHTTPField * | Add (PHTTPField *fld) |
void | RemoveAllFields () |
void | BuildHTML (const char *heading) |
void | BuildHTML (const PString &heading) |
void | BuildHTML (PHTML &html, BuildOptions option=CompleteHTML) |
| PHTTPString (const PURL &url) |
| Contruct a new simple string resource for the HTTP space.
|
| PHTTPString (const PURL &url, const PHTTPAuthority &auth) |
| PHTTPString (const PURL &url, const PString &str) |
| PHTTPString (const PURL &url, const PString &str, const PString &contentType) |
| PHTTPString (const PURL &url, const PString &str, const PHTTPAuthority &auth) |
| PHTTPString (const PURL &url, const PString &str, const PString &contentType, const PHTTPAuthority &auth) |
virtual PBoolean | LoadHeaders (PHTTPRequest &request) |
| Get the headers for block of data (eg HTML) that the resource contains.
|
virtual PString | LoadText (PHTTPRequest &request) |
| Get a block of text data (eg HTML) that the resource contains.
|
const PString & | GetString () |
| Get the string for this resource.
|
void | SetString (const PString &str) |
| Set the string to be returned by this resource.
|
virtual | ~PHTTPResource () |
const PURL & | GetURL () const |
| Get the URL for this resource.
|
const PString & | GetContentType () const |
| Get the current content type for the resource.
|
PHTTPAuthority * | GetAuthority () const |
| Get the current authority for the resource.
|
void | SetAuthority (const PHTTPAuthority &auth) |
| Set the current authority for the resource.
|
void | ClearAuthority () |
| Set the current authority for the resource to unrestricted.
|
DWORD | GetHitCount () const |
| Get the current hit count for the resource.
|
void | ClearHitCount () |
virtual PBoolean | OnGET (PHTTPServer &server, const PURL &url, const PMIMEInfo &info, const PHTTPConnectionInfo &conInfo) |
| Handle the GET command passed from the HTTP socket.
|
virtual PBoolean | OnGETData (PHTTPServer &server, const PURL &url, const PHTTPConnectionInfo &connectInfo, PHTTPRequest &request) |
| Send the data associated with a GET command.
|
virtual PBoolean | OnHEAD (PHTTPServer &server, const PURL &url, const PMIMEInfo &info, const PHTTPConnectionInfo &conInfo) |
| Handle the HEAD command passed from the HTTP socket.
|
virtual PBoolean | OnPOST (PHTTPServer &server, const PURL &url, const PMIMEInfo &info, const PStringToString &data, const PHTTPConnectionInfo &conInfo) |
| Handle the POST command passed from the HTTP socket.
|
virtual PBoolean | OnPOSTData (PHTTPRequest &request, const PStringToString &data) |
| Send the data associated with a POST command.
|
virtual PBoolean | IsModifiedSince (const PTime &when) |
| Check to see if the resource has been modified since the date specified.
|
virtual PBoolean | GetExpirationDate (PTime &when) |
| Get a block of data (eg HTML) that the resource contains.
|
virtual PHTTPRequest * | CreateRequest (const PURL &url, const PMIMEInfo &inMIME, const PMultiPartList &multipartFormInfo, PHTTPServer &socket) |
| Create a new request block for this type of resource.
|
virtual void | SendData (PHTTPRequest &request) |
| Send the data associated with a command.
|
virtual PBoolean | LoadData (PHTTPRequest &request, PCharArray &data) |
| Get a block of data that the resource contains.
|
virtual | ~PObject () |
virtual PObject * | Clone () const |
| Create a copy of the class on the heap.
|
virtual PINDEX | HashFunction () const |
| This function yields a hash value required by the PDictionary class.
|
virtual Comparison | Compare (const PObject &obj) const |
| Compare the two objects and return their relative rank.
|
virtual Comparison | CompareObjectMemoryDirect (const PObject &obj) const |
| Determine the byte wise comparison of two objects.
|
bool | operator== (const PObject &obj) const |
| Compare the two objects.
|
bool | operator!= (const PObject &obj) const |
| Compare the two objects.
|
bool | operator< (const PObject &obj) const |
| Compare the two objects.
|
bool | operator> (const PObject &obj) const |
| Compare the two objects.
|
bool | operator<= (const PObject &obj) const |
| Compare the two objects.
|
bool | operator>= (const PObject &obj) const |
| Compare the two objects.
|
virtual const char * | GetClass (unsigned ancestor=0) const |
| Get the current dynamic type of the object instance.
|
PBoolean | IsClass (const char *cls) const |
virtual PBoolean | InternalIsDescendant (const char *clsName) const |
| Determine if the dynamic type of the current instance is a descendent of the specified class.
|
virtual void | PrintOn (ostream &strm) const |
| Output the contents of the object to the stream.
|
virtual void | ReadFrom (istream &strm) |
| Input the contents of the object from the stream.
|