Loading...
Searching...
No Matches
RestClientDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace RestClientDataProvider {
const AppName = "GenericRest";
class RestClientDataProvider : public RestClientDataProviderBase {
public:
const ProviderInfo = ...;
const ConstructorOptions = ...;
protected:
const ChildMap = ...;
public:
constructor(*hash<auto> options);
constructor(RestClient rest) ;
string getName();
*string getDesc();
*list<hash<DataProviderSummaryInfo>> getChildProviderSummaryInfo();
setLogger(*LoggerInterface logger);
static RestClient getRestConnection(hash<auto> options);
static hash<auto> makeRequest(RestClient rest, string meth, *data body, string path, *hash<auto> hdr);
static hash<auto> processRestOptions(hash<auto> options);
protected:
*list<string> getChildProviderNamesImpl();
public:
protected:
*AbstractDataProvider getChildProviderImpl(string name);
public:
protected:
hash<DataProviderInfo> getStaticInfoImpl();
public:
};
};
RestClientDataProvider::RestClientDataProviderBase
The REST client data provider class, provides API classes as children.
Definition RestClientDataProviderBase.qc.dox.h:28
RestClientDataProvider::RestClientDataProvider::getChildProviderNamesImpl
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
RestClientDataProvider::RestClientDataProvider::getChildProviderImpl
*AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or nothing if the given child is unknown.
RestClientDataProvider::RestClientDataProvider::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
RestClientDataProvider::RestClientDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
RestClientDataProvider::RestClientDataProvider::getDesc
*string getDesc()
Returns the data provider description.
RestClientDataProvider::RestClientDataProvider::constructor
constructor(RestClient rest)
Creates the object from a REST connection.
RestClientDataProvider::RestClientDataProvider::getName
string getName()
Returns the data provider name.
RestClientDataProvider::RestClientDataProvider::setLogger
setLogger(*LoggerInterface logger)
Accepts a LoggerInterface object for logging (or clears it)
RestClientDataProvider::RestClientDataProvider::getChildProviderSummaryInfo
*list< hash< DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
RestClientDataProvider::RestClientDataProvider::processRestOptions
static hash< auto > processRestOptions(hash< auto > options)
Processes common REST options.
RestClientDataProvider::RestClientDataProvider::makeRequest
static hash< auto > makeRequest(RestClient rest, string meth, *data body, string path, *hash< auto > hdr)
Makes a REST request and returns the response.
RestClientDataProvider::RestClientDataProvider::getRestConnection
static RestClient getRestConnection(hash< auto > options)
Returns a REST connection.
RestClientDataProvider
Qore RestClientDataProvider module definition.
Definition RestClientCallDataProvider.qc.dox.h:26
RestClientDataProvider::AppName
const AppName
Application name.
Definition RestClientDataProvider.qc.dox.h:28