@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
构造器和说明 |
---|
JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols,
boolean serverFailIfNoCommonProtocols,
java.lang.Iterable<java.lang.String> protocols)
已过时。
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols,
boolean serverFailIfNoCommonProtocols,
java.lang.String... protocols)
已过时。
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols,
java.lang.Iterable<java.lang.String> protocols)
已过时。
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols,
java.lang.String... protocols)
已过时。
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(java.lang.Iterable<java.lang.String> protocols)
已过时。
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory,
java.lang.Iterable<java.lang.String> protocols)
已过时。
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory,
java.lang.String... protocols)
已过时。
Create a new instance.
|
JdkNpnApplicationProtocolNegotiator(java.lang.String... protocols)
已过时。
Create a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 ApplicationProtocolNegotiator
public JdkApplicationProtocolNegotiator.ProtocolSelectorFactory protocolSelectorFactory()
JdkApplicationProtocolNegotiator
public JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory protocolListenerFactory()
JdkApplicationProtocolNegotiator
public JdkApplicationProtocolNegotiator.SslEngineWrapperFactory wrapperFactory()
JdkApplicationProtocolNegotiator