#include <Pt/Http/Servlet.h>
Maps any request to a service.
Inherits Servlet.
Public Member Functions | |
MapAny (Service &s) | |
Construct with service. | |
MapAny (Service &s, Authorizer &a) | |
Construct with service and authorizer. | |
Authorizer * | authorizer () |
Returns the authorizer. | |
void | detach () |
Detach from server. | |
bool | isIdle () |
Returns true if not in use. | |
bool | isMapped (const Request &request) const |
Returns true if request is mapped to the service. | |
Service * | service () |
Returns the service to map requests to. | |
void | setShutdown (bool shutdown=true) |
Set shutdown flag. | |
Protected Member Functions | |
bool | onRequest (const Request &request) const |
Returns true if the servlet should process the request. | |