#include <shibsp/handler/RemotedHandler.h>

Static Public Member Functions | |
| static void | addRemotedHeader (const char *header) |
| Ensures that a request header will be remoted. | |
Protected Member Functions | |
| void | setAddress (const char *address) |
| Establishes message remoting using the supplied address. | |
| virtual DDF | send (const SPRequest &request, DDF &in) const |
| Send a remoted message and return the response. | |
| DDF | wrap (const SPRequest &request, const std::vector< std::string > *headers=nullptr, bool certs=false) const |
| Wraps a request by creating an outgoing data flow with the data needed to remote the request information. | |
| virtual std::pair< bool, long > | unwrap (SPRequest &request, DDF &out) const |
| Unwraps a response by examining an incoming data flow to determine whether a response was produced by the remoted handler. | |
| xmltooling::HTTPRequest * | getRequest (DDF &in) const |
| Builds a new request instance around a remoted data object. | |
| xmltooling::HTTPResponse * | getResponse (DDF &out) const |
| Builds a new response instance around an outgoing data object. | |
Protected Attributes | |
| std::string | m_address |
| Message address for remote half. | |
| static void shibsp::RemotedHandler::addRemotedHeader | ( | const char * | header | ) | [static] |
Ensures that a request header will be remoted.
| header | name of request header to remote |
| void shibsp::RemotedHandler::setAddress | ( | const char * | address | ) | [protected] |
Establishes message remoting using the supplied address.
| address | a unique "address" for remote message handling |
| virtual DDF shibsp::RemotedHandler::send | ( | const SPRequest & | request, | |
| DDF & | in | |||
| ) | const [protected, virtual] |
Send a remoted message and return the response.
| in | input message to send |
| DDF shibsp::RemotedHandler::wrap | ( | const SPRequest & | request, | |
| const std::vector< std::string > * | headers = nullptr, |
|||
| bool | certs = false | |||
| ) | const [protected] |
Wraps a request by creating an outgoing data flow with the data needed to remote the request information.
| request | an SPRequest to remote | |
| headers | array of additional request headers to copy to remote request | |
| certs | true iff client certificates should be available for the remote request |
| virtual std::pair<bool,long> shibsp::RemotedHandler::unwrap | ( | SPRequest & | request, | |
| DDF & | out | |||
| ) | const [protected, virtual] |
Unwraps a response by examining an incoming data flow to determine whether a response was produced by the remoted handler.
| request | SP request context | |
| out | the dataflow object to unpack |
| xmltooling::HTTPRequest* shibsp::RemotedHandler::getRequest | ( | DDF & | in | ) | const [protected] |
Builds a new request instance around a remoted data object.
| in | the dataflow object containing the remoted request |
| xmltooling::HTTPResponse* shibsp::RemotedHandler::getResponse | ( | DDF & | out | ) | const [protected] |
Builds a new response instance around an outgoing data object.
| out | the dataflow object to be returned by the caller |
std::string shibsp::RemotedHandler::m_address [protected] |
Message address for remote half.
1.5.6