public abstract class ConnectionPostProcessors extends Object
ConnectionPostProcessor
.
Note ConnectionPostProcessor
s can be combined with
ConnectionPostProcessors.AbstractConnectionPostProcessor.andThen(ConnectionPostProcessor)
.
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionPostProcessors.AbstractConnectionPostProcessor |
static class |
ConnectionPostProcessors.Builder |
Constructor and Description |
---|
ConnectionPostProcessors() |
Modifier and Type | Method and Description |
---|---|
static ConnectionPostProcessors.Builder |
builder()
Builder to configure and create a
ConnectionPostProcessor instance. |
static ConnectionPostProcessors.AbstractConnectionPostProcessor |
hostnameVerificationConnectionPostProcessor(HostnameVerifier verifier)
Perform hostname verification for TLS connections.
|
public static ConnectionPostProcessors.AbstractConnectionPostProcessor hostnameVerificationConnectionPostProcessor(HostnameVerifier verifier)
Enforcing hostname verification this way is relevant for Java 6.
If using Java 7 or more, you'd better off using SocketConfigurators
or SslEngineConfigurators
, depending on whether you're using
blocking IO or non-blocking IO, respectively.
verifier
- the HostnameVerifier
to usepublic static ConnectionPostProcessors.Builder builder()
ConnectionPostProcessor
instance.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.