| 程序包 | 说明 |
|---|---|
| com.yeepay.yop.sdk.client | |
| com.yeepay.yop.sdk.client.support | |
| com.yeepay.yop.sdk.http |
| 限定符和类型 | 方法和说明 |
|---|---|
ClientConfiguration |
ClientParams.getClientConfiguration() |
ClientConfiguration |
ClientConfiguration.withCircuitBreakerConfig(YopCircuitBreakerConfig circuitBreakerConfig) |
ClientConfiguration |
ClientConfiguration.withClientImpl(String clientImpl)
Sets the Http Client Impl.
|
ClientConfiguration |
ClientConfiguration.withConnectionRequestTimeoutInMillis(int connectionRequestTimeoutInMillis)
Sets the connection request timeout in milliseconds, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withConnectionTimeoutInMillis(int connectionTimeoutInMillis)
Sets the connection timeout in milliseconds, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withCredentials(YopCredentials<?> credentials)
Sets the YOP credentials used by the client to sign HTTP requests, and returns the updated configuration
instance.
|
ClientConfiguration |
ClientConfiguration.withLocalAddress(InetAddress localAddress)
Sets the optional local address to bind when connecting to YOP services, and returns the updated configuration
instance.
|
ClientConfiguration |
ClientConfiguration.withMaxConnections(int maxConnections)
Sets the maximum number of open HTTP connections, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withMaxConnectionsPerRoute(int maxConnections)
Sets the maximum number of per route, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withMaxRetryCount(int maxRetryCount) |
ClientConfiguration |
ClientConfiguration.withProtocol(Protocol protocol)
Sets the protocol (HTTP/HTTPS) to use when connecting to YOP services, and returns the updated configuration
instance.
|
ClientConfiguration |
ClientConfiguration.withProxyDomain(String proxyDomain)
Sets the optional Windows domain to use when connecting through a Windows NTLM proxy, and returns the updated
configuration instance.
|
ClientConfiguration |
ClientConfiguration.withProxyHost(String proxyHost)
Sets the optional proxy host the client will connect through, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withProxyPassword(String proxyPassword)
Sets the optional password to use when connecting through a proxy, and returns the updated configuration
instance.
|
ClientConfiguration |
ClientConfiguration.withProxyPort(int proxyPort)
Sets the optional proxy port the client will connect through, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withProxyPreemptiveAuthenticationEnabled(boolean proxyPreemptiveAuthenticationEnabled)
Sets whether to enable proxy preemptive authentication, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withProxyScheme(String proxyScheme)
Sets the optional proxy scheme the client will connect through, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withProxyUsername(String proxyUsername)
Sets the optional user name to use when connecting through a proxy, and returns the updated configuration
instance.
|
ClientConfiguration |
ClientConfiguration.withProxyWorkstation(String proxyWorkstation)
Sets the optional Windows workstation to use when connecting through a Windows NTLM proxy, and returns the
updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withRegion(Region region)
Sets the region of service, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withRetryExceptions(Set<String> retryExceptions) |
ClientConfiguration |
ClientConfiguration.withRetryPolicy(RetryPolicy retryPolicy)
Sets the retry policy for failed requests, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withSocketBufferSizeInBytes(int socketBufferSizeInBytes)
Sets the optional size (in bytes) for the low level TCP socket buffer, and returns the updated configuration
instance.
|
ClientConfiguration |
ClientConfiguration.withSocketTimeoutInMillis(int socketTimeoutInMillis)
Sets the socket timeout (SO_TIMEOUT) in milliseconds, which is a maximum period inactivity between two
consecutive data packets, and returns the updated configuration instance.
|
ClientConfiguration |
ClientConfiguration.withUserAgent(String userAgent)
Sets the User-Agent header value to use when sending requests to YOP services, and returns the updated
configuration instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ClientParams.Builder |
ClientParams.Builder.withClientConfiguration(ClientConfiguration clientConfiguration) |
SubClass |
AbstractServiceClientBuilder.withClientConfiguration(ClientConfiguration clientConfiguration) |
| 构造器和说明 |
|---|
ClientConfiguration(ClientConfiguration other)
Constructs a new ClientConfiguration instance with the same settings as the specified configuration.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ClientConfiguration |
ClientConfigurationSupport.getClientConfiguration(YopSdkConfig yopSdkConfig) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected ClientConfiguration |
AbstractYopHttpClient.clientConfig
Client configuration options, such as proxy settings, max retries, etc.
|
| 限定符和类型 | 方法和说明 |
|---|---|
YopHttpClient |
YopHttpClientProvider.get(ClientConfiguration clientConfig)
produce a YopHttpClient by the given config
|
static YopHttpClient |
YopHttpClientFactory.getClient(ClientConfiguration clientConfig) |
| 构造器和说明 |
|---|
AbstractYopHttpClient(ClientConfiguration clientConfig) |
Copyright © 2024. All rights reserved.