rtldev-middleware-perl-sdk

NAME

WebService::Hexonet::Connector::ResponseTemplateManager - Library to manage response templates.

SYNOPSIS

This module is internally used by the WebService::Hexonet::Connector::APIClient module as described below. To be used in the way:

# get (singleton) instance of this class
$rtm = WebService::Hexonet::Connector::ResponseTemplateManager->getIstance();

# add a template
$rtm->addTemplate('mytemplate ID', "[RESPONSE]\r\nCODE=200\r\nDESCRIPTION=Command completed successfully\r\nEOF\r\n");

    # get a template (instance of ResponseTemplate)
    $rtm->getTemplate('mytemplate ID');

etc. See the documented methods for deeper information.

DESCRIPTION

This library can be used to manage hardcoded API responses (for any reason). In general useful for automated tests where you need to work with hardcoded API responses. Also used by WebService::Hexonet::Connector::APIClient module for standard error cases.

Methods

LICENSE AND COPYRIGHT

This program is licensed under the MIT License.

AUTHOR

HEXONET GmbH