public final class JdkAlpnApplicationProtocolNegotiator extends Object
JdkApplicationProtocolNegotiator
to use if you need ALPN and are using SslProvider.JDK
.Modifier and Type | Class and Description |
---|---|
protected static class |
JdkBaseApplicationProtocolNegotiator.FailProtocolSelectionListener |
protected static class |
JdkBaseApplicationProtocolNegotiator.FailProtocolSelector |
protected static class |
JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelectionListener |
protected static class |
JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelector |
JdkApplicationProtocolNegotiator.ProtocolSelectionListener, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory, JdkApplicationProtocolNegotiator.ProtocolSelector, JdkApplicationProtocolNegotiator.ProtocolSelectorFactory, JdkApplicationProtocolNegotiator.SslEngineWrapperFactory
Constructor and Description |
---|
JdkAlpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols,
boolean serverFailIfNoCommonProtocols,
Iterable<String> protocols)
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols,
boolean serverFailIfNoCommonProtocols,
String... protocols)
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols,
Iterable<String> protocols)
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols,
String... protocols)
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(Iterable<String> protocols)
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory,
Iterable<String> protocols)
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory,
String... protocols)
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(String... protocols)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory |
protocolListenerFactory()
|
List<String> |
protocols()
Get the collection of application protocols supported by this application (in preference order).
|
JdkApplicationProtocolNegotiator.ProtocolSelectorFactory |
protocolSelectorFactory()
|
JdkApplicationProtocolNegotiator.SslEngineWrapperFactory |
wrapperFactory()
|
public JdkAlpnApplicationProtocolNegotiator(Iterable<String> protocols)
protocols
- The order of iteration determines the preference of support for protocols.public JdkAlpnApplicationProtocolNegotiator(String... protocols)
protocols
- The order of iteration determines the preference of support for protocols.public JdkAlpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, Iterable<String> protocols)
failIfNoCommonProtocols
- Fail with a fatal alert if not common protocols are detected.protocols
- The order of iteration determines the preference of support for protocols.public JdkAlpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, String... protocols)
failIfNoCommonProtocols
- Fail with a fatal alert if not common protocols are detected.protocols
- The order of iteration determines the preference of support for protocols.public JdkAlpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols, boolean serverFailIfNoCommonProtocols, Iterable<String> protocols)
clientFailIfNoCommonProtocols
- Client side fail with a fatal alert if not common protocols are detected.serverFailIfNoCommonProtocols
- Server side fail with a fatal alert if not common protocols are detected.protocols
- The order of iteration determines the preference of support for protocols.public JdkAlpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols, boolean serverFailIfNoCommonProtocols, String... protocols)
clientFailIfNoCommonProtocols
- Client side fail with a fatal alert if not common protocols are detected.serverFailIfNoCommonProtocols
- Server side fail with a fatal alert if not common protocols are detected.protocols
- The order of iteration determines the preference of support for protocols.public JdkAlpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory, Iterable<String> protocols)
selectorFactory
- The factory which provides classes responsible for selecting the protocol.listenerFactory
- The factory which provides to be notified of which protocol was selected.protocols
- The order of iteration determines the preference of support for protocols.public JdkAlpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory, String... protocols)
selectorFactory
- The factory which provides classes responsible for selecting the protocol.listenerFactory
- The factory which provides to be notified of which protocol was selected.protocols
- The order of iteration determines the preference of support for protocols.public List<String> protocols()
ApplicationProtocolNegotiator
protocols
in interface ApplicationProtocolNegotiator
public JdkApplicationProtocolNegotiator.ProtocolSelectorFactory protocolSelectorFactory()
JdkApplicationProtocolNegotiator
protocolSelectorFactory
in interface JdkApplicationProtocolNegotiator
public JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory protocolListenerFactory()
JdkApplicationProtocolNegotiator
protocolListenerFactory
in interface JdkApplicationProtocolNegotiator
public JdkApplicationProtocolNegotiator.SslEngineWrapperFactory wrapperFactory()
JdkApplicationProtocolNegotiator
wrapperFactory
in interface JdkApplicationProtocolNegotiator
Copyright © 2008–2015 The Netty Project. All rights reserved.