Abstract base for SPRequest implementations. More...
#include <shibsp/AbstractSPRequest.h>


Public Member Functions | |
| const ServiceProvider & | getServiceProvider () const |
| Returns the locked ServiceProvider processing the request. | |
| RequestMapper::Settings | getRequestSettings () const |
| Returns RequestMapper Settings associated with the request, guaranteed to be valid for the request's duration. | |
| const Application & | getApplication () const |
| Returns the Application governing the request. | |
| Session * | getSession (bool checkTimeout=true, bool ignoreAddress=false, bool cache=true) |
| Returns a locked Session associated with the request. | |
| const char * | getRequestURI () const |
| const char * | getRequestURL () const |
| std::string | getRemoteAddr () const |
| const char * | getParameter (const char *name) const |
|
std::vector< const char * > ::size_type | getParameters (const char *name, std::vector< const char * > &values) const |
| const char * | getHandlerURL (const char *resource=nullptr) const |
| Returns the effective base Handler URL for a resource, or the current request URL. | |
| void | log (SPLogLevel level, const std::string &msg) const |
| Log to native server environment. | |
| bool | isPriorityEnabled (SPLogLevel level) const |
| Test logging level. | |
Protected Member Functions | |
| AbstractSPRequest (const char *category) | |
| Constructor. | |
| void | setRequestURI (const char *uri) |
| Stores a normalized request URI to ensure it contains no -encoded characters or other undesirable artifacts. | |
Abstract base for SPRequest implementations.
| shibsp::AbstractSPRequest::AbstractSPRequest | ( | const char * | category | ) | [protected] |
Constructor.
| category | logging category to use |
| const Application& shibsp::AbstractSPRequest::getApplication | ( | ) | const [virtual] |
Returns the Application governing the request.
Implements shibsp::SPRequest.
| const char* shibsp::AbstractSPRequest::getHandlerURL | ( | const char * | resource = nullptr |
) | const [virtual] |
Returns the effective base Handler URL for a resource, or the current request URL.
| resource | resource URL to compute handler for |
Implements shibsp::SPRequest.
| RequestMapper::Settings shibsp::AbstractSPRequest::getRequestSettings | ( | ) | const [virtual] |
Returns RequestMapper Settings associated with the request, guaranteed to be valid for the request's duration.
Implements shibsp::SPRequest.
| const ServiceProvider& shibsp::AbstractSPRequest::getServiceProvider | ( | ) | const [virtual] |
Returns the locked ServiceProvider processing the request.
Implements shibsp::SPRequest.
| Session* shibsp::AbstractSPRequest::getSession | ( | bool | checkTimeout = true, |
|
| bool | ignoreAddress = false, |
|||
| bool | cache = true | |||
| ) | [virtual] |
Returns a locked Session associated with the request.
| checkTimeout | true iff the last-used timestamp should be updated and any timeout policy enforced | |
| ignoreAddress | true iff all address checking should be ignored, regardless of policy | |
| cache | true iff the request should hold the Session lock itself and unlock during cleanup |
Implements shibsp::SPRequest.
| bool shibsp::AbstractSPRequest::isPriorityEnabled | ( | SPLogLevel | level | ) | const [virtual] |
Test logging level.
| level | logging level |
Implements shibsp::SPRequest.
| void shibsp::AbstractSPRequest::log | ( | SPLogLevel | level, | |
| const std::string & | msg | |||
| ) | const [virtual] |
Log to native server environment.
| level | logging level | |
| msg | message to log |
Implements shibsp::SPRequest.
| void shibsp::AbstractSPRequest::setRequestURI | ( | const char * | uri | ) | [protected] |
Stores a normalized request URI to ensure it contains no -encoded characters or other undesirable artifacts.
| uri | the request URI as obtained from the client |
1.7.1