#include <Session.H>
Public Member Functions | |
Session (const string &server="localhost", const int port=700, const string &templates_dir=TEMPLATESDIR) | |
Constructor. | |
~Session () | |
Destructor. | |
void | enable_xml_validation (const string &schemas_dir=SCHEMASDIR) |
Enable XML Parser Validation. | |
void | disable_xml_validation () |
Disable XML Parser Validation. | |
void | enable_cert_common_name_check () |
Enables peer's certificate common name check. | |
void | disable_cert_common_name_check () |
Disables peer's certificate common name check. | |
void | connect (const string &client_cert_file, const string &root_ca_file, const string &pem_passphrase="") |
Establish the Connection. | |
void | disconnect () |
Close the connection. | |
void | send_hello () |
Send Hello. | |
Greeting * | get_greeting () |
Get Greeting. | |
void | process_action (Action *action_to_be_processed, const string clTRID="") |
Process Action. | |
string | get_last_command () |
Get last command. | |
string | get_last_response () |
Get last response. | |
string | get_server () |
Get EPP server. | |
int | get_port () |
Get EPP server port. | |
void | set_server (const string &server) |
Set EPP server name. | |
void | set_port (const int &port) |
Set EPP server port. |
Session::Session | ( | const string & | server = "localhost" , |
|
const int | port = 700 , |
|||
const string & | templates_dir = TEMPLATESDIR | |||
) |
Constructor.
server | Epp Server Name | |
port | Epp Server Port Number | |
templates_dir | Optional Path to the XML Templates Directory |
void Session::connect | ( | const string & | client_cert_file, | |
const string & | root_ca_file, | |||
const string & | pem_passphrase = "" | |||
) |
Establish the Connection.
client_cert_file | Client certificate file | |
root_ca_file | Root certificate file | |
pem_passphrase | Optional passphrase for an encrypted private key |
void Session::enable_xml_validation | ( | const string & | schemas_dir = SCHEMASDIR |
) |
Enable XML Parser Validation.
schemas_dir | Optional Path to the XML schemas |
string Session::get_last_command | ( | ) |
Get last command.
string Session::get_last_response | ( | ) |
Get last response.
int Session::get_port | ( | ) |
Get EPP server port.
string Session::get_server | ( | ) |
Get EPP server.
void Session::process_action | ( | Action * | action_to_be_processed, | |
const string | clTRID = "" | |||
) |
void Session::set_port | ( | const int & | port | ) |
Set EPP server port.
port | EPP server port |
void Session::set_server | ( | const string & | server | ) |
Set EPP server name.
server | EPP server name |