public final class RestClientConfiguration extends Object
RestClient
s.Modifier and Type | Method and Description |
---|---|
static RestClientConfiguration |
fromConfiguration(Configuration config)
Creates and returns a new
RestClientConfiguration from the given Configuration . |
long |
getConnectionTimeout()
|
long |
getIdlenessTimeout()
|
int |
getMaxContentLength()
Returns the max content length that the REST client endpoint could handle.
|
SSLHandlerFactory |
getSslHandlerFactory()
Returns the
SSLEngine that the REST client endpoint should use. |
@Nullable public SSLHandlerFactory getSslHandlerFactory()
SSLEngine
that the REST client endpoint should use.public long getConnectionTimeout()
public long getIdlenessTimeout()
public int getMaxContentLength()
public static RestClientConfiguration fromConfiguration(Configuration config) throws ConfigurationException
RestClientConfiguration
from the given Configuration
.config
- configuration from which the REST client endpoint configuration should be
created fromConfigurationException
- if SSL was configured incorrectlyCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.