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 java.lang.Object implements JdkApplicationProtocolNegotiator.ProtocolSelectionListener
-
-
Field Summary
Fields Modifier and Type Field Description private JdkSslEngine
engineWrapper
private java.util.List<java.lang.String>
supportedProtocols
-
Constructor Summary
Constructors Constructor Description NoFailProtocolSelectionListener(JdkSslEngine engineWrapper, java.util.List<java.lang.String> supportedProtocols)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
noSelectedMatchFound(java.lang.String protocol)
void
selected(java.lang.String protocol)
Callback invoked to let this application know the protocol chosen by the peer.void
unsupported()
Callback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator
.
-
-
-
Field Detail
-
engineWrapper
private final JdkSslEngine engineWrapper
-
supportedProtocols
private final java.util.List<java.lang.String> supportedProtocols
-
-
Constructor Detail
-
NoFailProtocolSelectionListener
NoFailProtocolSelectionListener(JdkSslEngine engineWrapper, java.util.List<java.lang.String> supportedProtocols)
-
-
Method Detail
-
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
public void selected(java.lang.String protocol) throws java.lang.Exception
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:
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
-
-