Package io.netty.handler.ssl
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 Object
implements JdkApplicationProtocolNegotiator.ProtocolSelectionListener
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNoFailProtocolSelectionListener(JdkSslEngine engineWrapper, List<String> supportedProtocols) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidnoSelectedMatchFound(String protocol) voidCallback 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.
-
Field Details
-
engineWrapper
-
supportedProtocols
-
-
Constructor Details
-
NoFailProtocolSelectionListener
NoFailProtocolSelectionListener(JdkSslEngine engineWrapper, List<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
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:
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
- Throws:
Exception
-