Class ApplicationProtocolConfig
java.lang.Object
io.netty.handler.ssl.ApplicationProtocolConfig
Provides an
SSLEngine agnostic way to configure a ApplicationProtocolNegotiator.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines which application level protocol negotiation to use.static enumDefines the most common behaviors for the peer which is notified of the selected protocol.static enumDefines the most common behaviors for the peer that selects the application protocol. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ApplicationProtocolConfigThe configuration that disables application protocol negotiation. -
Constructor Summary
ConstructorsConstructorDescriptionApplicationProtocolConfig(ApplicationProtocolConfig.Protocol protocol, ApplicationProtocolConfig.SelectorFailureBehavior selectorBehavior, ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedBehavior, Iterable<String> supportedProtocols) Create a new instance.ApplicationProtocolConfig(ApplicationProtocolConfig.Protocol protocol, ApplicationProtocolConfig.SelectorFailureBehavior selectorBehavior, ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedBehavior, String... supportedProtocols) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotocol()Get which application level protocol negotiation to use.Get the desired behavior for the peer who is notified of the selected protocol.Get the desired behavior for the peer who selects the application protocol.The application level protocols supported.
-
Field Details
-
DISABLED
The configuration that disables application protocol negotiation.
-
-
Constructor Details
-
ApplicationProtocolConfig
public ApplicationProtocolConfig(ApplicationProtocolConfig.Protocol protocol, ApplicationProtocolConfig.SelectorFailureBehavior selectorBehavior, ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedBehavior, Iterable<String> supportedProtocols) Create a new instance.- Parameters:
protocol- The application protocol functionality to use.selectorBehavior- How the peer selecting the protocol should behave.selectedBehavior- How the peer being notified of the selected protocol should behave.supportedProtocols- The order of iteration determines the preference of support for protocols.
-
ApplicationProtocolConfig
public ApplicationProtocolConfig(ApplicationProtocolConfig.Protocol protocol, ApplicationProtocolConfig.SelectorFailureBehavior selectorBehavior, ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedBehavior, String... supportedProtocols) Create a new instance.- Parameters:
protocol- The application protocol functionality to use.selectorBehavior- How the peer selecting the protocol should behave.selectedBehavior- How the peer being notified of the selected protocol should behave.supportedProtocols- The order of iteration determines the preference of support for protocols.
-
-
Method Details
-
supportedProtocols
-
protocol
Get which application level protocol negotiation to use. -
selectorFailureBehavior
Get the desired behavior for the peer who selects the application protocol. -
selectedListenerFailureBehavior
Get the desired behavior for the peer who is notified of the selected protocol.
-