public final class ApplicationProtocolConfig
extends java.lang.Object
SSLEngine
agnostic way to configure a ApplicationProtocolNegotiator
.限定符和类型 | 类和说明 |
---|---|
static class |
ApplicationProtocolConfig.Protocol
Defines which application level protocol negotiation to use.
|
static class |
ApplicationProtocolConfig.SelectedListenerFailureBehavior
Defines the most common behaviors for the peer which is notified of the selected protocol.
|
static class |
ApplicationProtocolConfig.SelectorFailureBehavior
Defines the most common behaviors for the peer that selects the application protocol.
|
限定符和类型 | 字段和说明 |
---|---|
static ApplicationProtocolConfig |
DISABLED
The configuration that disables application protocol negotiation.
|
构造器和说明 |
---|
ApplicationProtocolConfig(ApplicationProtocolConfig.Protocol protocol,
ApplicationProtocolConfig.SelectorFailureBehavior selectorBehavior,
ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedBehavior,
java.lang.Iterable<java.lang.String> supportedProtocols)
Create a new instance.
|
ApplicationProtocolConfig(ApplicationProtocolConfig.Protocol protocol,
ApplicationProtocolConfig.SelectorFailureBehavior selectorBehavior,
ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedBehavior,
java.lang.String... supportedProtocols)
Create a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
ApplicationProtocolConfig.Protocol |
protocol()
Get which application level protocol negotiation to use.
|
ApplicationProtocolConfig.SelectedListenerFailureBehavior |
selectedListenerFailureBehavior()
Get the desired behavior for the peer who is notified of the selected protocol.
|
ApplicationProtocolConfig.SelectorFailureBehavior |
selectorFailureBehavior()
Get the desired behavior for the peer who selects the application protocol.
|
java.util.List<java.lang.String> |
supportedProtocols()
The application level protocols supported.
|
public static final ApplicationProtocolConfig DISABLED
public ApplicationProtocolConfig(ApplicationProtocolConfig.Protocol protocol, ApplicationProtocolConfig.SelectorFailureBehavior selectorBehavior, ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedBehavior, java.lang.Iterable<java.lang.String> supportedProtocols)
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.public ApplicationProtocolConfig(ApplicationProtocolConfig.Protocol protocol, ApplicationProtocolConfig.SelectorFailureBehavior selectorBehavior, ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedBehavior, java.lang.String... supportedProtocols)
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.public java.util.List<java.lang.String> supportedProtocols()
public ApplicationProtocolConfig.Protocol protocol()
public ApplicationProtocolConfig.SelectorFailureBehavior selectorFailureBehavior()
public ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedListenerFailureBehavior()