Package DE_EPAGES::RemoteSearch::API::Object::WebserviceClient
Base Webservice class for index / search and suggest webservice clients.
Functions
create
Webservice client factory method
Syntax |
DE_EPAGES::RemoteSearch::API::Object::WebserviceClient->create( $Shop, $hArgs ); |
Input |
|
Return |
|
decodeResponse
Decodes the response. By default this is decode_json($Content). An alternative behaviour can be set by passing ResponseDecoderSub in in the constructor.
Syntax |
my $DecodedContent = $Client->decodeResponse( $Content ); |
Input |
|
Return |
|
encodeRequest
encodes the request. By default this is encode_json($Content). An alternative behaviour can be set by passing RequestEncoderSub in in the constructor.
Syntax |
my $EncodedContent = $Client->encodeRequest( $Content ); |
Input |
|
Return |
|
indexBaseUrl
Returns absolute BaseURL of the webservice
Syntax |
my $URL = $Client->indexBaseUrl(); |
Return |
|
indexOperationUrl
returns the absolute webservice url based on the operation passed (e.g. suggest) and the base URL passed in the constructor.
Syntax |
my $URL = $Client->indexOperationUrl( $Operation ); |
Input |
|
Return |
|
new
Webservice client constructor
Syntax |
DE_EPAGES::RemoteSearch::API::Object::WebserviceClient->new( %args ); |
Input |
|
Return |
|
ping
Checks if remote server is reachable via Net::Ping (ICMP) See DE_EPAGES::RemoteSearch::API::Object::HTTPClient::ping
Syntax |
$Client->ping(); |
Return |
|