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 void
noSelectedMatchFound
(String protocol) void
Callback invoked to let this application know the protocol chosen by the peer.void
Callback 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.ProtocolSelectionListener
Callback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator
.- Specified by:
unsupported
in interfaceJdkApplicationProtocolNegotiator.ProtocolSelectionListener
-
selected
Description copied from interface:JdkApplicationProtocolNegotiator.ProtocolSelectionListener
Callback invoked to let this application know the protocol chosen by the peer.- Specified by:
selected
in interfaceJdkApplicationProtocolNegotiator.ProtocolSelectionListener
- Parameters:
protocol
- the protocol selected by the peer. May benull
or 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
-