#include <request.h>
Inheritance diagram for Dv::Ticket::Request:
Public Types | |
typedef Dv::Util::ref< Request > | Ref |
Shorthand typedef. | |
Public Member Functions | |
virtual Dv::Xml::Document & | handle (Dv::Xml::Document &result) |
Handle a request. | |
virtual | ~Request () |
Destructor. | |
const Dv::Xml::Node::Ref & | root () const |
const std::string & | host () const |
Dv::Ticket::Server & | server () |
Server that received the request. | |
Static Public Member Functions | |
Ref | make (const Dv::Xml::Document &req, Dv::Util::ref< Dv::Ssl::SslSocket > client, Server &server) |
Factory function. | |
Protected Member Functions | |
Request (const Dv::Xml::Document &req, Dv::Util::ref< Dv::Ssl::SslSocket > client, Server &server) | |
Constructor (protected, use Dv::Request::make). | |
Dv::Util::ref< Dv::Ssl::SslSocket > | client () |
Private Attributes | |
Dv::Xml::Document | req_ |
XML document containing the request. | |
Dv::Xml::Node::Ref | root_ |
root of req_ | |
Dv::Util::ref< Dv::Ssl::SslSocket > | client_ |
SSL connection to client making the request. | |
std::string | host_ |
Dot address of client making the request. | |
Server & | server_ |
Server that received the request. |
A client may e.g. request to obtain a new ticket (anonymous or otherwise), or to validate an existing ticket (via its serial number).
Definition at line 17 of file request.h.
|
Shorthand typedef.
|
|
Destructor.
|
|
Constructor (protected, use Dv::Request::make).
|
|
Factory function. The function will return a pointer to an instance object of a class derived from a Request. The derived class depends on the data in the req XML document parameter.
|
|
Handle a request. This is a virtual function, the default implementation simly returns its unmodified argument.
Reimplemented in Dv::Ticket::LoginRequest, Dv::Ticket::AnonLoginRequest, and Dv::Ticket::ValidateRequest. |
|
Definition at line 47 of file request.h. References root_. |
|
Definition at line 49 of file request.h. References host_. |
|
Server that received the request.
Definition at line 51 of file request.h. References server_. Referenced by Dv::Ticket::AnonLoginRequest::AnonLoginRequest(), Dv::Ticket::LoginRequest::LoginRequest(), and Dv::Ticket::ValidateRequest::ValidateRequest(). |
|
Definition at line 61 of file request.h. References client_. |
|
XML document containing the request.
|
|
root of req_
Definition at line 66 of file request.h. Referenced by root(). |
|
SSL connection to client making the request.
Definition at line 68 of file request.h. Referenced by client(). |
|
Dot address of client making the request. E.g. 134.184.65.2 Definition at line 70 of file request.h. Referenced by host(). |
|
Server that received the request.
Definition at line 72 of file request.h. Referenced by server(). |
dvticket-0.7.1 | [24 October, 2003] |