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 JdkSslEngineengineWrapperprivate 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 voidnoSelectedMatchFound(java.lang.String protocol)voidselected(java.lang.String protocol)Callback invoked to let this application know the protocol chosen by the peer.voidunsupported()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.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.ExceptionDescription 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
-
-