Package DE_EPAGES::Core::API::Object::RestClient
base class for rest clients
Base |
DE_EPAGES::Core::API::Object::BaseObject |
Functions
getBasePath
Returns the configuration of a service.
Syntax |
my $hConf = $Client->getBasePath(); |
Return |
|
getServiceUrl
Returns the url for a service. (e.g. 'http://localhost:8088/rs/pdf')
Syntax |
my $Url = $Client->getServiceUrl(); |
Return |
|
logger
Prints output to a file for logging and debugging purposes.
Syntax |
$Client->logger(); |
Input |
|
new
Create a new rest-client object.
Syntax |
my $Client = DE_EPAGES::Core::API::Object::RestClient->new( 'Alias' => 'pdf', 'Header' => { 'Content_Type'=>'text/html', } ); |
Input |
|
Return |
|
sendRequest
Send a request to the service provider and return the answer.
Syntax |
my $Answer = $Client->sendRequest( $Content ); |
Input |
|
Return |
|