10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
DefaultLicenseCheckoutRequest.h
1#ifndef TENDUKE_EE_LICENSING_AUTZHAPI_DEFAULTLICENSECHECKOUTREQUEST_H
2#define TENDUKE_EE_LICENSING_AUTZHAPI_DEFAULTLICENSECHECKOUTREQUEST_H
3
4#include "./AbstractLicenseTokenAuthzApiRequest.h"
5#include "../LicenseCheckoutRequest.h"
6#include "../../LicensingConfiguration.h"
7#include "../../checkout/LicenseCheckoutParameters.h"
8#include "../../checkout/LicenseCheckoutResponse.h"
9
10#include "../../LicenseTokenParser.h"
11
12#include "http/HTTPClient.h"
13#include "http/HTTPRequestAuthenticator.h"
14#include "http/HTTPResponseToException.h"
15
16#include <memory>
17#include <string>
18
19
20namespace tenduke { namespace ee { namespace licensing { namespace authzapi {
21
22
27{
28public:
39 const std::shared_ptr<const ::tenduke::http::HTTPClient> &httpClient,
40 const std::shared_ptr<const ::tenduke::http::HTTPRequestAuthenticator> &httpRequestAuthenticator,
41 const std::shared_ptr<const ::tenduke::http::HTTPResponseToException> &throwException,
42 const std::shared_ptr<const ::tenduke::ee::licensing::impl::LicenseTokenParser> &licenseTokenParser,
43 const std::shared_ptr<const ::tenduke::ee::licensing::LicensingConfiguration> &configuration,
44 const ::tenduke::ee::licensing::LicenseCheckoutParameters &parameters
45 );
46
47 // tenduke::ee::licensing::LicenseCheckoutRequest interface
48protected:
53 virtual void buildRequestUrl(::tenduke::net::URLBuilder &url) const override;
54
55private:
56 const std::shared_ptr<const ::tenduke::ee::licensing::LicensingConfiguration> configuration;
57 const ::tenduke::ee::licensing::LicenseCheckoutParameters parameters;
58};
59
60
61}}}}
62
63#endif // TENDUKE_EE_LICENSING_AUTZHAPI_DEFAULTLICENSECHECKOUTREQUEST_H
Base class for licensing requests, which return tokens.
Definition AbstractLicenseTokenAuthzApiRequest.h:25
Default implementation of tenduke::ee::licensing::LicenseCheckoutRequest.
Definition DefaultLicenseCheckoutRequest.h:27
virtual void buildRequestUrl(::tenduke::net::URLBuilder &url) const override
Builds request URL.
Definition DefaultLicenseCheckoutRequest.cpp:20
Very simple URL-builder.
Definition URLBuilder.h:19
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4