@Deprecated
public final class JdkNpnApplicationProtocolNegotiator
extends java.lang.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,
java.lang.Iterable<java.lang.String> protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols,
boolean serverFailIfNoCommonProtocols,
java.lang.String... protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols,
java.lang.Iterable<java.lang.String> protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols,
java.lang.String... protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(java.lang.Iterable<java.lang.String> protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory,
java.lang.Iterable<java.lang.String> protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory,
java.lang.String... protocols)
Deprecated.
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(java.lang.String... protocols)
Deprecated.
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory |
protocolListenerFactory()
|
java.util.List<java.lang.String> |
protocols()
Get the collection of application protocols supported by this application (in preference order).
|
JdkApplicationProtocolNegotiator.ProtocolSelectorFactory |
protocolSelectorFactory()
|
JdkApplicationProtocolNegotiator.SslEngineWrapperFactory |
wrapperFactory()
|
public JdkNpnApplicationProtocolNegotiator(java.lang.Iterable<java.lang.String> protocols)
protocols
- The order of iteration determines the preference of support for protocols.public JdkNpnApplicationProtocolNegotiator(java.lang.String... protocols)
protocols
- The order of iteration determines the preference of support for protocols.public JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols, java.lang.Iterable<java.lang.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, java.lang.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, java.lang.Iterable<java.lang.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, java.lang.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, java.lang.Iterable<java.lang.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, java.lang.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 java.util.List<java.lang.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–2018 The Netty Project. All rights reserved.