EPP Session Class.
More...
#include <Session.H>
Session::Session |
( |
const string & |
server = "localhost" , |
|
|
const int |
port = 700 , |
|
|
const string & |
templates_dir = TEMPLATESDIR |
|
) |
| |
Constructor.
- Parameters
-
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.
- Parameters
-
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.
- Parameters
-
schemas_dir | Optional Path to the XML schemas |
string Session::get_clTrID |
( |
| ) |
const |
Returns the current client transaction id used in the EPP commands. If empty, the client transaction id will be random.
- Returns
- Client transaction id
string Session::get_last_command |
( |
| ) |
const |
Get last command.
- Returns
- Return the last command in XML format
string Session::get_last_response |
( |
| ) |
const |
Get last response.
- Returns
- Return the last response in XML format
int Session::get_port |
( |
| ) |
const |
Get EPP server port.
- Returns
- EPP server port
string Session::get_server |
( |
| ) |
const |
Get EPP server.
- Returns
- EPP server name
void Session::process_action |
( |
Action * |
action_to_be_processed, |
|
|
const string |
clTRID = "" |
|
) |
| |
Process Action.
- Parameters
-
action_to_be_processed | Action to be processed |
clTRID | Optional Client Transaction ID |
void Session::runXML |
( |
const string & |
input | ) |
|
Send XML input command.
- Parameters
-
void Session::set_clTrID |
( |
const string & |
clTRID | ) |
|
Set a custom client transaction id to be used in the requests. To go back using a random client transaction id just set an empty string. This should be used for debug purpouse only.
- Parameters
-
clTRID | client transaction id |
void Session::set_port |
( |
const int & |
port | ) |
|
Set EPP server port.
- Parameters
-
void Session::set_server |
( |
const string & |
server | ) |
|
Set EPP server name.
- Parameters
-
The documentation for this class was generated from the following file: