public class CommunicatorConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static Set<String> |
DEFAULT_HTTPS_PROTOCOLS
The default HTTPS protocols.
|
static int |
DEFAULT_MAX_CONNECTIONS
The default number of maximum connections.
|
Constructor and Description |
---|
CommunicatorConfiguration() |
CommunicatorConfiguration(Properties properties) |
public static final int DEFAULT_MAX_CONNECTIONS
public CommunicatorConfiguration()
public CommunicatorConfiguration(Properties properties)
public URI getApiEndpoint()
public void setApiEndpoint(URI apiEndpoint)
public CommunicatorConfiguration withApiEndpoint(URI apiEndpoint)
public String getAuthorizationId()
AuthorizationType.V1HMAC
this is the identifier for the secret API key.public void setAuthorizationId(String authorizationId)
public CommunicatorConfiguration withAuthorizationId(String authorizationId)
public String getAuthorizationSecret()
AuthorizationType.V1HMAC
this is the secret API key.public void setAuthorizationSecret(String authorizationSecret)
public CommunicatorConfiguration withAuthorizationSecret(String authorizationSecret)
public String getApiKeyId()
apiKeyId
can be
retrieved from the Configuration Center. This identifier is visible in
the HTTP request and is also used to identify the correct account.
This method is an alias for getAuthorizationId()
.
public void setApiKeyId(String apiKeyId)
setAuthorizationId(String)
.public CommunicatorConfiguration withApiKeyId(String apiKeyId)
withAuthorizationId(String)
.public String getSecretApiKey()
apiKeyId
and secretApiKey
always
go hand-in-hand, the difference is that secretApiKey
is never
visible in the HTTP request. This secret is used as input for the HMAC
algorithm.
This method is an alias for getAuthorizationSecret()
.
public void setSecretApiKey(String secretApiKey)
setAuthorizationSecret(String)
.public CommunicatorConfiguration withSecretApiKey(String secretApiKey)
withAuthorizationSecret(String)
.public AuthorizationType getAuthorizationType()
public void setAuthorizationType(AuthorizationType authorizationType)
public CommunicatorConfiguration withAuthorizationType(AuthorizationType authorizationType)
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public CommunicatorConfiguration withConnectTimeout(int connectTimeout)
public int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
public CommunicatorConfiguration withSocketTimeout(int socketTimeout)
public int getMaxConnections()
public void setMaxConnections(int maxConnections)
public CommunicatorConfiguration withMaxConnections(int maxConnections)
public boolean isConnectionReuse()
public void setConnectionReuse(boolean connectionReuse)
public CommunicatorConfiguration withConnectionReuse(boolean connectionReuse)
public ProxyConfiguration getProxyConfiguration()
public void setProxyConfiguration(ProxyConfiguration proxyConfiguration)
public CommunicatorConfiguration withProxyConfiguration(ProxyConfiguration proxyConfiguration)
public CommunicatorConfiguration withHttpsProtocols(Collection<String> httpsProtocols)
public CommunicatorConfiguration withHttpsProtocols(String... httpsProtocols)
public String getIntegrator()
public void setIntegrator(String integrator)
public CommunicatorConfiguration withIntegrator(String integrator)
public ShoppingCartExtension getShoppingCartExtension()
public void setShoppingCartExtension(ShoppingCartExtension shoppingCartExtension)
public CommunicatorConfiguration withShoppingCartExtension(ShoppingCartExtension shoppingCartExtension)
Copyright © 2024 Worldline Global Collect. All rights reserved.