public final class ApplicationProtocolConfig extends Object
SSLEngine
agnostic way to configure a ApplicationProtocolNegotiator
.Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
static ApplicationProtocolConfig |
DISABLED
The configuration that disables application protocol negotiation.
|
Constructor and Description |
---|
ApplicationProtocolConfig(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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
List<String> |
supportedProtocols()
The application level protocols supported.
|
public static final ApplicationProtocolConfig DISABLED
public ApplicationProtocolConfig(ApplicationProtocolConfig.Protocol protocol, ApplicationProtocolConfig.SelectorFailureBehavior selectorBehavior, ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedBehavior, Iterable<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, 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 List<String> supportedProtocols()
public ApplicationProtocolConfig.Protocol protocol()
public ApplicationProtocolConfig.SelectorFailureBehavior selectorFailureBehavior()
public ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedListenerFailureBehavior()
Copyright © 2008–2024 The Netty Project. All rights reserved.