NetBurner 3.5.0
PDF Version |
|
Base class for all GET handlers. To handle GET requests for a specific URL in your application, build a GET handler object for that specifif URL. A NULL name will be a catch all for all GET requests. More...
#include <http.h>
Inherited by AcmeAuthItem, CallBackFunctionPageHandler, CallBackWSEndPoint, HtmlConfigExposer, and HtmlPostHandler.
Public Member Functions | |
HtmlPageHandler (const char *url, HTTP_RequestTypes rt=tGet, int accessGroup=0, bool Before_Files=false) | |
Register handler. | |
virtual int | ProcessRaw (int sock, HTTP_Request &pd)=0 |
This class will do a callback with data for each request to the specified url. | |
int | GetGroup () |
Returns access group setting. | |
Protected Member Functions | |
void | InsertSort (HtmlPageHandler *&ph) |
Insert sort. | |
int | SortValue (HtmlPageHandler *pv) |
Returns the value of the sort compare: -1, 0, 1. | |
Protected Attributes | |
HtmlPageHandler * | m_pNextHandler |
Pointer to next page handle object. | |
const char * | m_pUrlName |
Pointer to URL. Performs a length match, an empty string matches everything. | |
int | m_access_group |
The access group for this request see CheckHttpAccess. | |
HTTP_RequestTypes | m_requestTypes |
Type of request, HTTP_RequestTypes. | |
Base class for all GET handlers. To handle GET requests for a specific URL in your application, build a GET handler object for that specifif URL. A NULL name will be a catch all for all GET requests.
HtmlPageHandler::HtmlPageHandler | ( | const char * | url, |
HTTP_RequestTypes | rt = tGet, | ||
int | accessGroup = 0, | ||
bool | Before_Files = false ) |
Register handler.
url | The URL name to register. A NULL string matches everything |
rt | The GET request type to respond to |
accessGroup | Access group of the URL |
Before_Files | Specify if the response should be before or after the compiled in HTML files |
|
inline |
Returns access group setting.
|
pure virtual |
This class will do a callback with data for each request to the specified url.
Implemented in CallBackFunctionPageHandler, and CallBackFunctionPostHandler.