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 "../../../config/BackendConfiguration.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::BackendConfiguration> &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:
60
61private:
62 const ::tenduke::se::licensing::LicenseReleaseParameters parameters;
63};
64
65}}}}
66
67#endif //TENDUKE_SE_LICENSING_REST_DEFAULTLICENSERELEASEREQUEST_H
Definition of LicenseReleaseRequest.
Interface for 10Duke Scale API-requests.
Definition APIRequest.h:12
A tenduke::se::APIRequest, which uses tenduke::oidc::OIDCSession to maintain request authorization.
Definition StatefulAPIRequest.h:27
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:85
const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > throwException
Throw-exception.
Definition AbstractLicenseRequest.h:87
const std::shared_ptr< const ::tenduke::se::ClientProperties > clientProperties
Client properties.
Definition AbstractLicenseRequest.h:77
const std::shared_ptr< const ::tenduke::se::BackendConfiguration > configuration
Config.
Definition AbstractLicenseRequest.h:79
Default implementation of tenduke::se::licensing::rest::LicenseReleaseRequest.
Definition DefaultLicenseReleaseRequest.h:23
::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
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7