Package com.rabbitmq.client
Class ConnectionPostProcessors
- java.lang.Object
-
- com.rabbitmq.client.ConnectionPostProcessors
-
public abstract class ConnectionPostProcessors extends Object
Ready-to-use instances and builder forConnectionPostProcessor
.Note
ConnectionPostProcessor
s can be combined withConnectionPostProcessors.AbstractConnectionPostProcessor.andThen(ConnectionPostProcessor)
.- Since:
- 4.8.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConnectionPostProcessors.AbstractConnectionPostProcessor
static class
ConnectionPostProcessors.Builder
-
Constructor Summary
Constructors Constructor Description ConnectionPostProcessors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionPostProcessors.Builder
builder()
Builder to configure and create aConnectionPostProcessor
instance.static ConnectionPostProcessors.AbstractConnectionPostProcessor
hostnameVerificationConnectionPostProcessor(HostnameVerifier verifier)
Perform hostname verification for TLS connections.
-
-
-
Method Detail
-
hostnameVerificationConnectionPostProcessor
public static ConnectionPostProcessors.AbstractConnectionPostProcessor hostnameVerificationConnectionPostProcessor(HostnameVerifier verifier)
Perform hostname verification for TLS connections.Enforcing hostname verification this way is relevant for Java 6. If using Java 7 or more, you'd better off using
SocketConfigurators
orSslEngineConfigurators
, depending on whether you're using blocking IO or non-blocking IO, respectively.- Parameters:
verifier
- theHostnameVerifier
to use- Returns:
-
builder
public static ConnectionPostProcessors.Builder builder()
Builder to configure and create aConnectionPostProcessor
instance.- Returns:
-
-