MapAny Class Reference

#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.
 
void setShutdown (bool shutdown=true)
 Set shutdown flag.
 
bool isIdle ()
 Returns true if not in use.
 
void detach ()
 Detach from server.
 
bool isMapped (const Request &request) const
 Returns true if request is mapped to the service.
 
Serviceservice ()
 Returns the service to map requests to.
 
Authorizerauthorizer ()
 Returns the authorizer.
 

Protected Member Functions

bool onRequest (const Request &request) const
 Returns true if the servlet should process the request.