|
10Duke Scale C++ Client
|
#include <AbstractLicenseRequest.h>
Abstract base class for license-related requests.
Public Member Functions | |
| AbstractLicenseRequest (std::string licenseKey, bool metered, 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) | |
| Constructs new instance. | |
Protected Member Functions | |
| std::string | getLicenseKey () const |
| Returns license key. | |
| bool | hasLicenseKey () const |
| Checks if this is license-key request. | |
| bool | isMetered () const |
| Checks if this metered-request. | |
| void | setClientClaims (::tenduke::http::HTTPRequestBuilder &request) const |
| Sets client claims to the request. | |
Protected Attributes | |
| const std::shared_ptr< const ::tenduke::se::ClientProperties > | clientProperties |
| Client properties. | |
| const std::shared_ptr< const ::tenduke::se::rest::RESTConfiguration > | configuration |
| Config. | |
| const std::shared_ptr< const ::tenduke::http::HTTPClient > | http |
| HTTP-client. | |
| const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > | httpRequestAuthenticator |
| HTTP-request authenticator. | |
| const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > | throwException |
| Throw-exception. | |
| const std::shared_ptr< const ::tenduke::json::JSONParser > | parseJSON |
| Parses JSON. | |
| tenduke::se::licensing::rest::AbstractLicenseRequest::AbstractLicenseRequest | ( | std::string | licenseKey, |
| bool | metered, | ||
| 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 ) |
Constructs new instance.
| licenseKey | - |
| metered | - |
| clientProperties | - |
| configuration | - |
| httpClient | - |
| httpRequestAuthenticator | - |
| throwException | - |
| jsonParser | - |
|
protected |
Returns license key.
nullptr if this is regular (non-license key) operation.
|
protected |
Checks if this is license-key request.
|
protected |
Sets client claims to the request.
| request | - |