Interface JdkApplicationProtocolNegotiator.ProtocolSelectionListener
- All Known Implementing Classes:
JdkBaseApplicationProtocolNegotiator.FailProtocolSelectionListener, JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelectionListener
- Enclosing interface:
JdkApplicationProtocolNegotiator
public static interface JdkApplicationProtocolNegotiator.ProtocolSelectionListener
A listener to be notified by which protocol was select by its peer. Either the
unsupported() OR the selected(String) method
will be called for each SSL handshake.-
Method Summary
Modifier and TypeMethodDescriptionvoidselected(java.lang.String protocol) Callback 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.
-
Method Details
-
unsupported
void unsupported()Callback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator. -
selected
void selected(java.lang.String protocol) throws java.lang.Exception Callback invoked to let this application know the protocol chosen by the peer.- 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.
-