10Duke Scale C++ Client
Loading...
Searching...
No Matches
DefaultDescribeLicenseConsumerClientBindingsRequest.h
1#ifndef TENDUKE_SE_LICENSING_REST_DEFAULTDESCRIBELICENSECONSUMERCLIENTBINDINGSREQUEST_H
2#define TENDUKE_SE_LICENSING_REST_DEFAULTDESCRIBELICENSECONSUMERCLIENTBINDINGSREQUEST_H
3
4#include "./DescribeLicenseConsumerClientBindingsRequest.h"
5#include "../../../rest/AbstractPagingAPIRequest.h"
6#include "../../../Filter.h"
7
8namespace tenduke { namespace se { namespace licensing { namespace rest {
9
10
14class DefaultDescribeLicenseConsumerClientBindingsRequest : public ::tenduke::se::licensing::rest::AbstractPagingAPIRequest<::tenduke::se::licensing::LicenseConsumerClientBindingStatus>
16{
17public:
31 const ::tenduke::se::BackendConfiguration &backendConfiguration,
32 const std::shared_ptr<const ::tenduke::http::HTTPClient> &httpClient,
33 const std::shared_ptr<const ::tenduke::http::HTTPRequestAuthenticator> &httpRequestAuthenticator,
34 const std::shared_ptr<const ::tenduke::http::HTTPResponseToException> &throwException,
35 const std::shared_ptr<const ::tenduke::json::JSONParser> &jsonParser,
36 const ::tenduke::se::Paging &paging,
37 std::string licenseeId,
38 std::string licenseConsumerId,
40 );
41
42public:
44
45protected:
47 void buildUrl(::tenduke::net::URLBuilder &url) const override;
52
53private:
54 const std::string licenseeId;
55 const std::string licenseConsumerId;
56 const ::tenduke::se::Filter filter;
57};
58
59}}}}
60
61#endif //TENDUKE_SE_LICENSING_REST_DEFAULTDESCRIBELICENSECONSUMERCLIENTBINDINGSREQUEST_H
Builds HTTPRequest.
Definition HTTPRequestBuilder.h:22
Very simple URL-builder.
Definition URLBuilder.h:19
Interface for 10Duke Scale API-requests.
Definition APIRequest.h:12
Filter-definition for the REST-API.
Definition Filter.h:13
A tenduke::se::APIRequest, which uses tenduke::oidc::OIDCSession to maintain request authorization.
Definition StatefulAPIRequest.h:27
Result of queries, which describe client bindings.
Definition LicenseConsumerClientBindingStatus.h:15
const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > throwException
Service to throw exceptions based on HTTP status codes.
Definition AbstractAPIRequestMixin.h:117
const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > httpRequestAuthenticator
For authenticating the request.
Definition AbstractAPIRequestMixin.h:114
Abstract base class for API-requests, which support paging.
Definition AbstractPagingAPIRequest.h:17
Default implementation of tenduke::se::licensing::rest::DescribeLicenseConsumerClientBindingsRequest.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.h:16
::tenduke::se::licensing::LicenseConsumerClientBindingStatus fromJSON(const std::string &responseBody) const override
Converts the response body from JSON to the response type.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.cpp:48
void buildUrl(::tenduke::net::URLBuilder &url) const override
Builds the request URL.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.cpp:33
::tenduke::se::licensing::LicenseConsumerClientBindingStatus execute() override
Execute the request synchronously.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.cpp:28
::tenduke::http::HTTPRequestBuilder & setHeaders(::tenduke::http::HTTPRequestBuilder &request) const override
Sets the paging headers to the request.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.cpp:120
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7