FETPAPI 0.3.0.0
This project provides C++ classes which facilitate the developement of ETP1.2 clients and servers.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ETP_NS::InitializationParameters Class Reference

Public Member Functions

FETPAPI_DLL_IMPORT_OR_EXPORT InitializationParameters (boost::uuids::uuid instanceUuid, const std::string &etpServerUrl, const std::string &proxyUrl="")
 
FETPAPI_DLL_IMPORT_OR_EXPORT InitializationParameters (const std::string &instanceUuid, const std::string &etpServerUrl, const std::string &proxyUrl="")
 
 InitializationParameters (boost::uuids::uuid instanceUuid, const std::string &host, uint16_t port, const std::string &urlPath="")
 
 InitializationParameters (const std::string &instanceUuid, const std::string &host, uint16_t port, const std::string &urlPath="")
 
FETPAPI_DLL_IMPORT_OR_EXPORT void setMaxWebSocketMessagePayloadSize (uint64_t value)
 
FETPAPI_DLL_IMPORT_OR_EXPORT uint64_t getMaxWebSocketMessagePayloadSize () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT void setPreferredMaxFrameSize (uint64_t value)
 
FETPAPI_DLL_IMPORT_OR_EXPORT uint64_t getPreferredMaxFrameSize () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT void setAdditionalHandshakeHeaderFields (const std::map< std::string, std::string > &extraHandshakeHeaderFields)
 
FETPAPI_DLL_IMPORT_OR_EXPORT const std::map< std::string, std::string > & getAdditionalHandshakeHeaderFields () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT void setAdditionalCertificates (const std::string &extraCertificates)
 
FETPAPI_DLL_IMPORT_OR_EXPORT const std::string & getAdditionalCertificates () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT const boost::uuids::uuid & getInstanceId () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT const std::string & getEtpServerHost () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT uint16_t getEtpServerPort () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT const std::string & getEtpServerUrlPath () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT const std::string & getProxyHost () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT uint16_t getProxyPort () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT void setForceTls (bool force)
 
FETPAPI_DLL_IMPORT_OR_EXPORT bool isTlsForced () const
 
virtual FETPAPI_DLL_IMPORT_OR_EXPORT std::string getApplicationName () const
 
virtual FETPAPI_DLL_IMPORT_OR_EXPORT std::string getApplicationVersion () const
 
FETPAPI_DLL_IMPORT_OR_EXPORT std::map< std::string, Energistics::Etp::v12::Datatypes::DataValuemakeEndpointCapabilities () const
 
virtual FETPAPI_DLL_IMPORT_OR_EXPORT std::vector< Energistics::Etp::v12::Datatypes::SupportedDataObjectmakeSupportedDataObjects () const
 
virtual FETPAPI_DLL_IMPORT_OR_EXPORT std::vector< Energistics::Etp::v12::Datatypes::SupportedProtocolmakeSupportedProtocols () const
 
virtual FETPAPI_DLL_IMPORT_OR_EXPORT void postSessionCreationOperation (class AbstractSession *session) const
 

Constructor & Destructor Documentation

◆ InitializationParameters() [1/4]

FETPAPI_DLL_IMPORT_OR_EXPORT ETP_NS::InitializationParameters::InitializationParameters ( boost::uuids::uuid instanceUuid,
const std::string & etpServerUrl,
const std::string & proxyUrl = "" )
inline
Parameters
instanceUuidThe UUID of the client instance.
etpServerUrlMust follow the syntax ws://<host>:<port>/<path> or wss://<host>:<port>/<path> or simply <host>:<port>/<path> where port is optional and is defaulted to 80 if scheme is "ws" or if no scheme is provided. In "wss" schema cases, port is defaulted to 443.
proxyUrlThe proxy URL. It must follow the syntax http://<host>:<port> or simply <host>:<port>. Leave it empty if your connection to eptServerUrl is direct and does not pass throughr any proxy.

◆ InitializationParameters() [2/4]

FETPAPI_DLL_IMPORT_OR_EXPORT ETP_NS::InitializationParameters::InitializationParameters ( const std::string & instanceUuid,
const std::string & etpServerUrl,
const std::string & proxyUrl = "" )
inline

Mainly for use with SWIG i.e. boost uuid structure is not easily portable whereas strings are.

Parameters
instanceUuidThe UUID of the client instance.
etpServerUrlMust follow the syntax ws://<host>:<port>/<path> or wss://<host>:<port>/<path> or simply <host>:<port>/<path> where port is optional and is defaulted to 80 if scheme is "ws" or if no scheme is provided. In "wss" schema cases, port is defaulted to 443.
proxyUrlThe proxy URL. It must follow the syntax http://<host>:<port> or simply <host>:<port>. Leave it empty if your connection to eptServerUrl is direct and does not pass throughr any proxy.

◆ InitializationParameters() [3/4]

ETP_NS::InitializationParameters::InitializationParameters ( boost::uuids::uuid instanceUuid,
const std::string & host,
uint16_t port,
const std::string & urlPath = "" )
inline

Only to be used for direct connection to the ETP server URL (not whenpassing through a proxy)

Parameters
instanceUuidThe UUID of the client or server instance.
hostThe fully qualified domain name of a network host, or its IP address as a set of four decimal digit groups separated by ".".
portThe port number to connect to.
urlPathThe rest of the locator consists of data specific to the scheme, and is known as the "url-path". It supplies the details of how the specified resource can be accessed. Note that the "/" between the host (or port) and the url-path is NOT part of the url-path.

◆ InitializationParameters() [4/4]

ETP_NS::InitializationParameters::InitializationParameters ( const std::string & instanceUuid,
const std::string & host,
uint16_t port,
const std::string & urlPath = "" )
inline

Only to be used for direct connection to the ETP server URL (not whenpassing through a proxy) Mainly for use with SWIG i.e. boost uuid structure is not easily portable whereas strings are.

Parameters
instanceUuidThe UUID of the client or server instance.
hostThe fully qualified domain name of a network host, or its IP address as a set of four decimal digit groups separated by ".".
portThe port number to connect to.
urlPathThe rest of the locator consists of data specific to the scheme, and is known as the "url-path". It supplies the details of how the specified resource can be accessed. Note that the "/" between the host (or port) and the url-path is NOT part of the url-path.

Member Function Documentation

◆ postSessionCreationOperation()

virtual FETPAPI_DLL_IMPORT_OR_EXPORT void ETP_NS::InitializationParameters::postSessionCreationOperation ( class AbstractSession * session) const
virtual

Override this method in order to register some dedicated protocol handlers for a session.


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