10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::ee::licensing::authzapi::AbstractAuthzApiRequest< T > Class Template Referenceabstract

#include <AbstractAuthzApiRequest.h>

Detailed Description

template<class T>
class tenduke::ee::licensing::authzapi::AbstractAuthzApiRequest< T >

Base class for authz-API HTTP requests.

Template Parameters
Ttype of the response
Inheritance diagram for tenduke::ee::licensing::authzapi::AbstractAuthzApiRequest< T >:
tenduke::ee::licensing::authzapi::LicensingRequest< T > tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest<::tenduke::ee::licensing::LicenseCheckoutResponse > tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest<::tenduke::ee::licensing::LicenseRenewResponse > tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest< T > tenduke::ee::licensing::authzapi::DefaultLicenseCheckoutRequest tenduke::ee::licensing::authzapi::DefaultLicenseRenewRequest

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.
 

Constructor & Destructor Documentation

◆ AbstractAuthzApiRequest()

template<class T >
tenduke::ee::licensing::authzapi::AbstractAuthzApiRequest< T >::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 
)
inline

Constructs new instance.

Parameters
httpClient-
httpRequestAuthenticator-
throwException-

Member Function Documentation

◆ buildRequestUrl()

◆ execute()

template<class T >
virtual T tenduke::ee::licensing::authzapi::AbstractAuthzApiRequest< T >::execute ( )
inlineoverridevirtual

Executes the request.

Returns
-

Implements tenduke::ee::licensing::authzapi::LicensingRequest< T >.

◆ parseResponsePayload()


The documentation for this class was generated from the following file: