protected static class JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelectionListener extends java.lang.Object implements JdkApplicationProtocolNegotiator.ProtocolSelectionListener
Modifier and Type | Field and Description |
---|---|
private JdkSslEngine |
jettyWrapper |
private java.util.List<java.lang.String> |
supportedProtocols |
Constructor and Description |
---|
NoFailProtocolSelectionListener(JdkSslEngine jettyWrapper,
java.util.List<java.lang.String> supportedProtocols) |
Modifier and Type | Method and Description |
---|---|
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 this
ApplicationProtocolNegotiator . |
private final JdkSslEngine jettyWrapper
private final java.util.List<java.lang.String> supportedProtocols
public NoFailProtocolSelectionListener(JdkSslEngine jettyWrapper, java.util.List<java.lang.String> supportedProtocols)
public void unsupported()
JdkApplicationProtocolNegotiator.ProtocolSelectionListener
ApplicationProtocolNegotiator
.unsupported
in interface JdkApplicationProtocolNegotiator.ProtocolSelectionListener
public void selected(java.lang.String protocol) throws java.lang.Exception
JdkApplicationProtocolNegotiator.ProtocolSelectionListener
selected
in interface JdkApplicationProtocolNegotiator.ProtocolSelectionListener
protocol
- the protocol selected by the peer. May be null
or empty as supported by the
application negotiation protocol.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.public void noSelectedMatchFound(java.lang.String protocol) throws java.lang.Exception
java.lang.Exception