public final class ClientConfiguration extends Object implements ProvidesCertificateResourcePaths, HttpIntegrationConfiguration, ASiCEConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientConfiguration.Builder |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECT_TIMEOUT_MS
The default connect timeout for requests: 10000 ms.
|
static int |
DEFAULT_SOCKET_TIMEOUT_MS
Socket timeout is used for both requests and, if any,
underlying layered sockets (typically for
secure sockets).
|
static String |
HTTP_REQUEST_RESPONSE_LOGGER_NAME
"no.digipost.signature.client.http.requestresponse" is the name of the logger which will log the HTTP requests and responses,
if enabled with
ClientConfiguration.Builder.enableRequestAndResponseLogging(). |
static String |
MANDATORY_USER_AGENT
The
User-Agent header which will be included in all requests. |
| Modifier and Type | Method and Description |
|---|---|
static ClientConfiguration.Builder |
builder(KeyStoreConfig keystore)
Build a new
ClientConfiguration. |
Iterable<String> |
getCertificatePaths() |
Clock |
getClock() |
Iterable<DocumentBundleProcessor> |
getDocumentBundleProcessors() |
Optional<Sender> |
getGlobalSender() |
javax.ws.rs.core.Configuration |
getJaxrsConfiguration()
Get the JAX-RS
Configuration based on the current state of this ClientConfiguration. |
KeyStoreConfig |
getKeyStoreConfig() |
URI |
getServiceRoot() |
SSLContext |
getSSLContext() |
public static final String MANDATORY_USER_AGENT
User-Agent header which will be included in all requests. You may include a custom part
using ClientConfiguration.Builder.includeInUserAgent(String).public static final String HTTP_REQUEST_RESPONSE_LOGGER_NAME
ClientConfiguration.Builder.enableRequestAndResponseLogging().public static final int DEFAULT_SOCKET_TIMEOUT_MS
public static final int DEFAULT_CONNECT_TIMEOUT_MS
public KeyStoreConfig getKeyStoreConfig()
getKeyStoreConfig in interface ASiCEConfigurationpublic Optional<Sender> getGlobalSender()
getGlobalSender in interface ASiCEConfigurationpublic Iterable<DocumentBundleProcessor> getDocumentBundleProcessors()
getDocumentBundleProcessors in interface ASiCEConfigurationpublic Clock getClock()
getClock in interface ASiCEConfigurationpublic URI getServiceRoot()
getServiceRoot in interface HttpIntegrationConfigurationpublic Iterable<String> getCertificatePaths()
getCertificatePaths in interface ProvidesCertificateResourcePathspublic javax.ws.rs.core.Configuration getJaxrsConfiguration()
Configuration based on the current state of this ClientConfiguration.getJaxrsConfiguration in interface HttpIntegrationConfigurationConfigurationpublic SSLContext getSSLContext()
getSSLContext in interface HttpIntegrationConfigurationpublic static ClientConfiguration.Builder builder(KeyStoreConfig keystore)
ClientConfiguration.Copyright © 2019 Digipost. All rights reserved.