@Deprecated
public final class JdkAlpnApplicationProtocolNegotiator
extends java.lang.Object
JdkApplicationProtocolNegotiator
to use if you need ALPN and are using SslProvider.JDK
.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListener, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory, JdkApplicationProtocolNegotiator.ProtocolSelector, JdkApplicationProtocolNegotiator.ProtocolSelectorFactory, JdkApplicationProtocolNegotiator.SslEngineWrapperFactory
构造器和说明 |
---|
JdkAlpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols,
boolean serverFailIfNoCommonProtocols,
java.lang.Iterable<java.lang.String> protocols)
已过时。
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(boolean clientFailIfNoCommonProtocols,
boolean serverFailIfNoCommonProtocols,
java.lang.String... protocols)
已过时。
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols,
java.lang.Iterable<java.lang.String> protocols)
已过时。
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(boolean failIfNoCommonProtocols,
java.lang.String... protocols)
已过时。
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(java.lang.Iterable<java.lang.String> protocols)
已过时。
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory,
java.lang.Iterable<java.lang.String> protocols)
已过时。
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory selectorFactory,
JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory listenerFactory,
java.lang.String... protocols)
已过时。
Create a new instance.
|
JdkAlpnApplicationProtocolNegotiator(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 JdkAlpnApplicationProtocolNegotiator(java.lang.Iterable<java.lang.String> protocols)
protocols
- The order of iteration determines the preference of support for protocols.public JdkAlpnApplicationProtocolNegotiator(java.lang.String... protocols)
protocols
- The order of iteration determines the preference of support for protocols.public JdkAlpnApplicationProtocolNegotiator(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 JdkAlpnApplicationProtocolNegotiator(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 JdkAlpnApplicationProtocolNegotiator(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 JdkAlpnApplicationProtocolNegotiator(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 JdkAlpnApplicationProtocolNegotiator(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 JdkAlpnApplicationProtocolNegotiator(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