10Duke Scale C++ Client
Loading...
Searching...
No Matches
DefaultLicenseReleaseRequest.h
1#ifndef TENDUKE_SE_LICENSING_REST_DEFAULTLICENSERELEASEREQUEST_H
2#define TENDUKE_SE_LICENSING_REST_DEFAULTLICENSERELEASEREQUEST_H
3
4#include "./AbstractLicenseRequest.h"
6#include "../../api/licenses/release/LicenseReleaseParameters.h"
7#include "../../../rest/RESTConfiguration.h"
8#include "../../../config/ClientProperties.h"
9#include "http/HTTPClient.h"
10#include "http/HTTPRequestAuthenticator.h"
11#include "http/HTTPResponseToException.h"
12#include "json/JSONParser.h"
13#include <memory>
14
15
16namespace tenduke { namespace se { namespace licensing { namespace rest {
17
23{
24public:
39 const std::shared_ptr<const ::tenduke::se::ClientProperties> &clientProperties,
40 const std::shared_ptr<const ::tenduke::se::rest::RESTConfiguration> &configuration,
41 const std::shared_ptr<const ::tenduke::http::HTTPClient> &httpClient,
42 const std::shared_ptr<const ::tenduke::http::HTTPRequestAuthenticator>& httpRequestAuthenticator,
43 const std::shared_ptr<const ::tenduke::http::HTTPResponseToException> &throwException,
44 const std::shared_ptr<const ::tenduke::json::JSONParser> &jsonParser,
47 );
48
49 // tenduke::se::licensing::LicenseReleaseRequest implementation
50public:
52
53protected:
59 ::tenduke::se::licensing::LicenseReleaseResponse fromJSON(const std::string &jsonDocument) const;
60
61private:
62 const ::tenduke::se::licensing::LicenseReleaseParameters parameters;
63};
64
65}}}}
66
67#endif //TENDUKE_SE_LICENSING_REST_DEFAULTLICENSERELEASEREQUEST_H
Definition of LicenseReleaseRequest.
DefaultLicenseReleaseRequest(::tenduke::se::licensing::LicenseReleaseParameters parameters, const std::shared_ptr< const ::tenduke::se::ClientProperties > &clientProperties, const std::shared_ptr< const ::tenduke::se::rest::RESTConfiguration > &configuration, const std::shared_ptr< const ::tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > &httpRequestAuthenticator, const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > &throwException, const std::shared_ptr< const ::tenduke::json::JSONParser > &jsonParser, const std::string &licenseKey=::tenduke::se::licensing::rest::AbstractLicenseRequest::NO_LICENSE_KEY, bool metered=::tenduke::se::licensing::rest::AbstractLicenseRequest::NON_METERED)
Constructs new instance.
Definition DefaultLicenseReleaseRequest.cpp:139
Parameters for license release request.
Definition LicenseReleaseParameters.h:14
Response from license release call.
Definition LicenseReleaseResponse.h:17
Abstract base class for license-related requests.
Definition AbstractLicenseRequest.h:20
static const bool NON_METERED
Magic value to indicate that this is normal (not metered) license request.
Definition AbstractLicenseRequest.h:28
static const std::string NO_LICENSE_KEY
Magic value to indicate that this is not a license key request.
Definition AbstractLicenseRequest.h:23
const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > httpRequestAuthenticator
HTTP-request authenticator.
Definition AbstractLicenseRequest.h:91
const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > throwException
Throw-exception.
Definition AbstractLicenseRequest.h:93
const std::shared_ptr< const ::tenduke::se::ClientProperties > clientProperties
Client properties.
Definition AbstractLicenseRequest.h:83
const std::shared_ptr< const ::tenduke::se::rest::RESTConfiguration > configuration
Config.
Definition AbstractLicenseRequest.h:85
DefaultLicenseReleaseRequest(::tenduke::se::licensing::LicenseReleaseParameters parameters, const std::shared_ptr< const ::tenduke::se::ClientProperties > &clientProperties, const std::shared_ptr< const ::tenduke::se::rest::RESTConfiguration > &configuration, const std::shared_ptr< const ::tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > &httpRequestAuthenticator, const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > &throwException, const std::shared_ptr< const ::tenduke::json::JSONParser > &jsonParser, const std::string &licenseKey=::tenduke::se::licensing::rest::AbstractLicenseRequest::NO_LICENSE_KEY, bool metered=::tenduke::se::licensing::rest::AbstractLicenseRequest::NON_METERED)
Constructs new instance.
Definition DefaultLicenseReleaseRequest.cpp:139
::tenduke::se::licensing::LicenseReleaseResponse execute() override
Execute the request synchronously.
Definition DefaultLicenseReleaseRequest.cpp:101
::tenduke::se::licensing::LicenseReleaseResponse fromJSON(const std::string &jsonDocument) const
Parses the response entity from JSON message body.
Definition DefaultLicenseReleaseRequest.cpp:43
Low-level services for performing licensing REST-requests.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.h:9
::tenduke::se::APIRequest<::tenduke::se::licensing::LicenseReleaseResponse > LicenseReleaseRequest
License release request.
Definition LicenseReleaseRequest.h:16
Licensing operations for 10Duke Scale.
Definition LicenseConsumerClientBindingStatus.h:8
Classes, functions and globals of 10Duke Scale C++ Client.
Definition AbstractClientFactory.h:16
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16