10Duke Enterprise C++ Client
|
#include <AbstractAuthzApiRequest.h>
Base class for authz-API HTTP requests.
T | type of the response |
Public Member Functions | |
AbstractAuthzApiRequest (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) | |
Constructs new instance. | |
virtual T | execute () override |
Executes the request. | |
Protected Member Functions | |
virtual T | parseResponsePayload (const std::string &payload) const =0 |
Parses the response payload to tenduke::ee::licensing::LicenseCheckoutResponse . | |
virtual void | buildRequestUrl (::tenduke::net::URLBuilder &url) const =0 |
Builds request URL. | |
|
inline |
Constructs new instance.
httpClient | - |
httpRequestAuthenticator | - |
throwException | - |
|
protectedpure virtual |
Builds request URL.
url | - |
Implemented in tenduke::ee::licensing::authzapi::DefaultLicenseCheckoutRequest, and tenduke::ee::licensing::authzapi::DefaultLicenseRenewRequest.
|
inlineoverridevirtual |
|
protectedpure virtual |
Parses the response payload to tenduke::ee::licensing::LicenseCheckoutResponse
.
payload | the response payload |
Implemented in tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest< T >, tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest<::tenduke::ee::licensing::LicenseCheckoutResponse >, and tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest<::tenduke::ee::licensing::LicenseRenewResponse >.