public interface ClientInterface extends Closeable, LoggingCapable
This client and all its child clients are bound to one specific value for the X-GCS-ClientMetaInfo header.
To get a new client with a different header value, use withClientMetaInfo(String).
Thread-safe.
| Modifier and Type | Method and Description |
|---|---|
void |
closeExpiredConnections()
Utility method that delegates the call to this client's communicator.
|
void |
closeIdleConnections(long idleTime,
TimeUnit timeUnit)
Utility method that delegates the call to this client's communicator.
|
MerchantClientInterface |
merchant(String merchantId)
Resource /v2/{merchantId}
|
Client |
withClientMetaInfo(String clientMetaInfo)
Returns a new
Client which uses the passed meta data for the
X-GCS-ClientMetaInfo header. |
disableLogging, enableLoggingClient withClientMetaInfo(String clientMetaInfo)
Client which uses the passed meta data for the
X-GCS-ClientMetaInfo header.clientMetaInfo - JSON string containing the meta data for the clientMarshallerSyntaxException - if the given clientMetaInfo is not a valid JSON stringvoid closeIdleConnections(long idleTime,
TimeUnit timeUnit)
void closeExpiredConnections()
MerchantClientInterface merchant(String merchantId)
Copyright © 2024 Worldline Online Payments Direct. All rights reserved.