EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ServiceEndpointDiscoveryOption.h
Go to the documentation of this file.
1 /*|-----------------------------------------------------------------------------
2  *| This source code is provided under the Apache 2.0 license --
3  *| and is provided AS IS with no warranty or guarantee of fit for purpose. --
4  *| See the project's LICENSE.md for details. --
5  *| Copyright (C) 2019 Refinitiv. All rights reserved. --
6  *|-----------------------------------------------------------------------------
7  */
8 
9 #ifndef __thomsonreuters_ema_access_ServiceEndpointDiscoveryOption_h
10 #define __thomsonreuters_ema_access_ServiceEndpointDiscoveryOption_h
11 
13 
14 namespace thomsonreuters {
15 
16 namespace ema {
17 
18 namespace access {
19 
20 class ServiceEndpointDiscoveryImpl;
21 
32 {
33 public:
34 
36  {
37  UnknownTransportEnum = 0,
38  TcpEnum = 1,
39  WebsocketEnum = 2,
40  };
41 
43  {
44  UnknownDataFormatEnum = 0,
45  RwfEnum = 1,
46  Json2Enum = 2,
47  };
48 
50 
51 
55 
57 
58 
62 
64 
65 
69 
74  ServiceEndpointDiscoveryOption& username(const EmaString& username);
75 
80  ServiceEndpointDiscoveryOption& password(const EmaString& password);
81 
86  ServiceEndpointDiscoveryOption& clientId(const EmaString& clientId);
87 
92  ServiceEndpointDiscoveryOption & clientSecret(const EmaString& clientSecret);
93 
98  ServiceEndpointDiscoveryOption & tokenScope(const EmaString& tokenScope = "trapi.streaming.pricing.read");
99 
104  ServiceEndpointDiscoveryOption& takeExclusiveSignOnControl( bool takeExclusiveSignOnControl = true );
105 
112  ServiceEndpointDiscoveryOption& transprot(TransportProtocol transport);
113 
119  ServiceEndpointDiscoveryOption& transport(TransportProtocol transport);
120 
126  ServiceEndpointDiscoveryOption& dataFormat(DataformatProtocol dataFormat);
127 
133  ServiceEndpointDiscoveryOption& proxyHostName(const EmaString& proxyHostName);
134 
140  ServiceEndpointDiscoveryOption& proxyPort(const EmaString& proxyPort);
141 
147  ServiceEndpointDiscoveryOption& proxyUserName(const EmaString& proxyUserName);
148 
154  ServiceEndpointDiscoveryOption& proxyPassword(const EmaString& proxyPassword);
155 
161  ServiceEndpointDiscoveryOption& proxyDomain(const EmaString& proxyDomain);
163 
164 private:
165 
166  friend class ServiceEndpointDiscoveryImpl;
167 
168  TransportProtocol _transport;
169  DataformatProtocol _dataFormat;
170  EmaString _username;
171  EmaString _password;
172  EmaString _clientId;
173  EmaString _clientSecret;
174  EmaString _tokenScope;
175  bool _takeExclusiveSignOnControl;
176  EmaString _proxyHostName;
177  EmaString _proxyPort;
178  EmaString _proxyUserName;
179  EmaString _proxyPassword;
180  EmaString _proxyDomain;
181 };
182 
183 }
184 
185 }
186 
187 }
188 
189 #endif // __thomsonreuters_ema_access_ServiceEndpointDiscoveryOption_h
EmaString class is a container of a null terminated Ascii character string.
Definition: EmaString.h:56
#define EMA_ACCESS_API
Definition: Common.h:95
ServiceEndpointDiscoveryOption is used to specify query options for ServiceEndpointDiscovery::registe...