public class Client extends ApiResource implements ClientInterface
| Modifier and Type | Field and Description |
|---|---|
static String |
API_VERSION |
clientMetaInfo, communicator| Constructor and Description |
|---|
Client(Communicator communicator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases any system resources associated with this object.
|
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.
|
void |
disableLogging()
Turns off logging.
|
void |
enableLogging(CommunicatorLogger communicatorLogger)
Turns on logging using the given communicator logger.
|
MerchantClient |
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. |
createException, getClientHeaders, instantiateUripublic static final String API_VERSION
public Client(Communicator communicator)
public Client withClientMetaInfo(String clientMetaInfo)
Client which uses the passed meta data for the
X-GCS-ClientMetaInfo header.withClientMetaInfo in interface ClientInterfaceclientMetaInfo - JSON string containing the meta data for the clientpublic void closeIdleConnections(long idleTime,
TimeUnit timeUnit)
closeIdleConnections in interface ClientInterfaceCommunicator.closeIdleConnections(long, TimeUnit),
PooledConnection.closeIdleConnections(long, TimeUnit)public void closeExpiredConnections()
closeExpiredConnections in interface ClientInterfaceCommunicator.closeExpiredConnections(),
PooledConnection.closeExpiredConnections()public void enableLogging(CommunicatorLogger communicatorLogger)
LoggingCapableenableLogging in interface LoggingCapablepublic void disableLogging()
LoggingCapabledisableLogging in interface LoggingCapablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic MerchantClient merchant(String merchantId)
merchant in interface ClientInterfaceCopyright © 2024 Worldline Online Payments Direct. All rights reserved.