10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::se::licensing::rest::DefaultDescribeLicenseKeyRequest Class Reference

#include <DefaultDescribeLicenseKeyRequest.h>

Detailed Description

Inheritance diagram for tenduke::se::licensing::rest::DefaultDescribeLicenseKeyRequest:
tenduke::se::licensing::rest::AbstractPagingAPIRequest<::tenduke::se::licensing::LicenseKeyLicensesStatus > tenduke::se::APIRequest<::tenduke::se::licensing::LicenseKeyLicensesStatus > tenduke::se::licensing::rest::AbstractAPIRequestMixin< ::tenduke::se::licensing::LicenseKeyLicensesStatus >

Public Member Functions

 DefaultDescribeLicenseKeyRequest (const ::tenduke::se::rest::RESTConfiguration &restConfiguration, 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, std::string licenseKey, const ::tenduke::se::Paging &paging, bool withMetadata)
 Constructs new instance.
 
::tenduke::se::licensing::LicenseKeyLicensesStatus execute () override
 Execute the request synchronously.
 
- Public Member Functions inherited from tenduke::se::licensing::rest::AbstractPagingAPIRequest<::tenduke::se::licensing::LicenseKeyLicensesStatus >
 AbstractPagingAPIRequest (const ::tenduke::net::URL &baseUrl, 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, ::tenduke::se::Paging paging)
 Constructs a new instance.
 
 AbstractPagingAPIRequest (const ::tenduke::net::URL &baseUrl, 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, ::tenduke::se::Paging paging)
 Constructs a new instance.
 
 AbstractPagingAPIRequest (const ::tenduke::net::URL &baseUrl, 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, ::tenduke::se::Paging paging)
 Constructs a new instance.
 
- Public Member Functions inherited from tenduke::se::licensing::rest::AbstractAPIRequestMixin< ::tenduke::se::licensing::LicenseKeyLicensesStatus >
 AbstractAPIRequestMixin (const ::tenduke::net::URL &baseUrl, 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 a new instance.
 

Protected Member Functions

::tenduke::se::licensing::LicenseKeyLicensesStatus fromJSON (const std::string &responseBody) const override
 Converts the response body from JSON to the response type.
 
void buildUrl (::tenduke::net::URLBuilder &) const override
 Builds the request URL.
 
- Protected Member Functions inherited from tenduke::se::licensing::rest::AbstractPagingAPIRequest<::tenduke::se::licensing::LicenseKeyLicensesStatus >
::tenduke::http::HTTPRequestBuildersetHeaders (::tenduke::http::HTTPRequestBuilder &request) const override
 Sets the paging headers to the request.
 
::tenduke::http::HTTPRequestBuildersetHeaders (::tenduke::http::HTTPRequestBuilder &request) const override
 Sets the paging headers to the request.
 
::tenduke::http::HTTPRequestBuildersetHeaders (::tenduke::http::HTTPRequestBuilder &request) const override
 Sets the paging headers to the request.
 
- Protected Member Functions inherited from tenduke::se::licensing::rest::AbstractAPIRequestMixin< ::tenduke::se::licensing::LicenseKeyLicensesStatus >
virtual ::tenduke::se::licensing::LicenseKeyLicensesStatus executeRequest ()
 Executes the request.
 
virtual::tenduke::http::HTTPRequestBuilder & setHeaders (::tenduke::http::HTTPRequestBuilder &request) const
 Sets additional headers.
 

Additional Inherited Members

- Protected Attributes inherited from tenduke::se::licensing::rest::AbstractAPIRequestMixin< ::tenduke::se::licensing::LicenseKeyLicensesStatus >
const ::tenduke::net::URL baseUrl
 Base-URL for the request.
 
const std::shared_ptr< const ::tenduke::http::HTTPClienthttp
 HTTP-client to execute the request.
 
const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticatorhttpRequestAuthenticator
 For authenticating the request.
 
const std::shared_ptr< const ::tenduke::http::HTTPResponseToExceptionthrowException
 Service to throw exceptions based on HTTP status codes.
 
const std::shared_ptr< const ::tenduke::json::JSONParserparseJSON
 For parsing the response payload.
 

Constructor & Destructor Documentation

◆ DefaultDescribeLicenseKeyRequest()

tenduke::se::licensing::rest::DefaultDescribeLicenseKeyRequest::DefaultDescribeLicenseKeyRequest ( const ::tenduke::se::rest::RESTConfiguration & restConfiguration,
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,
std::string licenseKey,
const ::tenduke::se::Paging & paging,
bool withMetadata )

Constructs new instance.

Parameters
restConfiguration-
httpClient-
httpRequestAuthenticator-
throwException-
jsonParser-
licenseKey-
paging-
withMetadata-

Member Function Documentation

◆ buildUrl()

void tenduke::se::licensing::rest::DefaultDescribeLicenseKeyRequest::buildUrl ( ::tenduke::net::URLBuilder & urlBuilder) const
overrideprotectedvirtual

◆ execute()

LicenseKeyLicensesStatus tenduke::se::licensing::rest::DefaultDescribeLicenseKeyRequest::execute ( )
overridevirtual

Execute the request synchronously.

Returns
the response.
Exceptions
tenduke::http::HTTPExceptione.g. internal server errors, invalid configuration (e.g. HTTP 404 not found) et al.
tenduke::net::NetworkingExceptione.g. timeouts, networking communication problems
tenduke::TimedOutgeneric time outs
tenduke::TendukeExceptiondepending on business logic problems (invalid json, cryptography issues, unexpected response etc.) These are usually subclasses of tenduke::TendukeException

Implements tenduke::se::APIRequest<::tenduke::se::licensing::LicenseKeyLicensesStatus >.

◆ fromJSON()

LicenseKeyLicensesStatus tenduke::se::licensing::rest::DefaultDescribeLicenseKeyRequest::fromJSON ( const std::string & responseBody) const
overrideprotectedvirtual

Converts the response body from JSON to the response type.

Parameters
responseBody-
Returns
-

Implements tenduke::se::licensing::rest::AbstractAPIRequestMixin< ::tenduke::se::licensing::LicenseKeyLicensesStatus >.


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