#include <httpsvc.h>
Inheritance diagram for PConfigSectionsPage:
Public Member Functions | |
PConfigSectionsPage (PHTTPServiceProcess &app, const PURL &url, const PHTTPAuthority &auth, const PString &prefix, const PString &valueName, const PURL &editSection, const PURL &newSection, const PString &newTitle, PHTML &heading) | |
void | OnLoadedText (PHTTPRequest &, 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. | |
PBoolean | OnPOST (PHTTPServer &server, const PURL &url, const PMIMEInfo &info, const PStringToString &data, const PHTTPConnectionInfo &connectInfo) |
Handle the POST command passed from the HTTP socket. | |
virtual PBoolean | Post (PHTTPRequest &request, const PStringToString &data, PHTML &replyMessage) |
Get a block of data (eg HTML) that the resource contains. | |
Protected Member Functions | |
virtual PBoolean | GetExpirationDate (PTime &when) |
Get a block of data (eg HTML) that the resource contains. | |
Protected Attributes | |
PHTTPServiceProcess & | process |
PConfigSectionsPage::PConfigSectionsPage | ( | PHTTPServiceProcess & | app, | |
const PURL & | url, | |||
const PHTTPAuthority & | auth, | |||
const PString & | prefix, | |||
const PString & | valueName, | |||
const PURL & | editSection, | |||
const PURL & | newSection, | |||
const PString & | newTitle, | |||
PHTML & | heading | |||
) |
Get a block of data (eg HTML) that the resource contains.
when | Time that the resource expires |
Reimplemented from PHTTPResource.
void PConfigSectionsPage::OnLoadedText | ( | PHTTPRequest & | , | |
PString & | text | |||
) | [virtual] |
This is called after the text has been loaded and may be used to customise or otherwise mangle a loaded piece of text.
Typically this is used with HTML responses.
The default action for this function is to do nothing.
Reimplemented from PHTTPConfigSectionList.
PBoolean PConfigSectionsPage::OnPOST | ( | PHTTPServer & | server, | |
const PURL & | url, | |||
const PMIMEInfo & | info, | |||
const PStringToString & | data, | |||
const PHTTPConnectionInfo & | connectInfo | |||
) | [virtual] |
Handle the POST command passed from the HTTP socket.
The default action is to check the authorisation for the resource and call the virtual Post()
function to handle the data being received.
Reimplemented from PHTTPResource.
virtual PBoolean PConfigSectionsPage::Post | ( | PHTTPRequest & | request, | |
const PStringToString & | data, | |||
PHTML & | replyMessage | |||
) | [virtual] |
Get a block of data (eg HTML) that the resource contains.
The default action for this function is to do nothing and return success.
request | Information on this request. |
data | Variables in the POST data. |
replyMessage | Reply message for post. |
Reimplemented from PHTTPConfigSectionList.
PHTTPServiceProcess& PConfigSectionsPage::process [protected] |