Class JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelectionListener
java.lang.Object
io.netty.handler.ssl.JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelectionListener
- All Implemented Interfaces:
JdkApplicationProtocolNegotiator.ProtocolSelectionListener
- Direct Known Subclasses:
JdkBaseApplicationProtocolNegotiator.FailProtocolSelectionListener
- Enclosing class:
JdkBaseApplicationProtocolNegotiator
private static class JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelectionListener
extends java.lang.Object
implements JdkApplicationProtocolNegotiator.ProtocolSelectionListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JdkSslEngineprivate final java.util.List<java.lang.String> -
Constructor Summary
ConstructorsConstructorDescriptionNoFailProtocolSelectionListener(JdkSslEngine engineWrapper, java.util.List<java.lang.String> supportedProtocols) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidnoSelectedMatchFound(java.lang.String protocol) voidselected(java.lang.String protocol) Callback invoked to let this application know the protocol chosen by the peer.voidCallback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
engineWrapper
-
supportedProtocols
private final java.util.List<java.lang.String> supportedProtocols
-
-
Constructor Details
-
NoFailProtocolSelectionListener
NoFailProtocolSelectionListener(JdkSslEngine engineWrapper, java.util.List<java.lang.String> supportedProtocols)
-
-
Method Details
-
unsupported
public void unsupported()Description copied from interface:JdkApplicationProtocolNegotiator.ProtocolSelectionListenerCallback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator.- Specified by:
unsupportedin interfaceJdkApplicationProtocolNegotiator.ProtocolSelectionListener
-
selected
public void selected(java.lang.String protocol) throws java.lang.Exception Description copied from interface:JdkApplicationProtocolNegotiator.ProtocolSelectionListenerCallback invoked to let this application know the protocol chosen by the peer.- Specified by:
selectedin interfaceJdkApplicationProtocolNegotiator.ProtocolSelectionListener- Parameters:
protocol- the protocol selected by the peer. May benullor empty as supported by the application negotiation protocol.- Throws:
java.lang.Exception- This may be thrown if the selected protocol is not acceptable and the desired behavior is to fail the handshake with a fatal alert.
-
noSelectedMatchFound
protected void noSelectedMatchFound(java.lang.String protocol) throws java.lang.Exception - Throws:
java.lang.Exception
-