@Deprecated public final class JdkNpnApplicationProtocolNegotiator extends Object
JdkApplicationProtocolNegotiator
to use if you need NPN and are using SslProvider.JDK
.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListener, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory, JdkApplicationProtocolNegotiator.ProtocolSelector, JdkApplicationProtocolNegotiator.ProtocolSelectorFactory, JdkApplicationProtocolNegotiator.SslEngineWrapperFactory
Constructor and Description |
---|
JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols,
boolean serverFailIfNoCommonProtocols,
Iterable<String> protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols,
boolean serverFailIfNoCommonProtocols,
String... protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols,
Iterable<String> protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols,
String... protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(Iterable<String> protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory,
Iterable<String> protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory,
String... protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(String... protocols)
Deprecated.
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 JdkNpnApplicationProtocolNegotiator(Iterable<String> protocols)
protocols
- The order of iteration determines the preference of support for protocols.public JdkNpnApplicationProtocolNegotiator(String... protocols)
protocols
- The order of iteration determines the preference of support for protocols.public JdkNpnApplicationProtocolNegotiator(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 JdkNpnApplicationProtocolNegotiator(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 JdkNpnApplicationProtocolNegotiator(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 JdkNpnApplicationProtocolNegotiator(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 JdkNpnApplicationProtocolNegotiator(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 JdkNpnApplicationProtocolNegotiator(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–2024 The Netty Project. All rights reserved.