#include <httpform.h>
List of all members.
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.
|
Protected Attributes |
PString | section |
PString | sectionPrefix |
PString | sectionSuffix |
PHTTPField * | sectionField |
PHTTPField * | keyField |
PHTTPField * | valField |
Constructor & Destructor Documentation
Member Function Documentation
Add fields to the HTTP form for adding a new key to the config file section.
- Parameters:
-
keyFld | Field for the key to be added. |
valFld | Field for the value of the key yto be added. |
Add a field that will determine the name opf the secontion into which the other fields are to be added as keys.
The section is not created and and error generated if the section already exists.
- Parameters:
-
sectionFld | Field to set as the section name |
prefix | String to attach before the field value |
suffix | String to attach after the field value |
Get the configuration file section that the page will alter.
- Returns:
- String for config file section.
References section.
Load all of the values for the resource from the configuration.
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.
- Parameters:
-
request | Information on this request. |
text | Data used in reply. |
Reimplemented from PHTTPForm.
Reimplemented in PRegisterPage, and PConfigPage.
Get a block of data (eg HTML) that the resource contains.
The default action for this function is to do nothing and return success.
- Returns:
- true if the connection may persist, false if the connection must close
- Parameters:
-
request | Information on this request. |
data | Variables in the POST data. |
replyMessage | Reply message for post. |
Reimplemented from PHTTPForm.
Reimplemented in PRegisterPage, and PConfigPage.
- Parameters:
-
sect | New section for the config page. |
Member Data Documentation
The documentation for this class was generated from the following file: