Package org.glassfish.grizzly.npn
Interface ClientSideNegotiator
public interface ClientSideNegotiator
Provides a set of callbacks that will be invoked when negotiation
NPN on the client side.
-
Method Summary
Modifier and TypeMethodDescriptionvoidThis will be invoked if no protocols are returned from the server or selectProtocol returnsnull.selectProtocol(SSLEngine engine, LinkedHashSet<String> protocols) Select and return a single protocol from the provided set of protocols.booleanwantNegotiate(SSLEngine engine)
-
Method Details
-
wantNegotiate
- Returns:
trueif this NPN negotiation should occur, otherwisefalse.
-
selectProtocol
Select and return a single protocol from the provided set of protocols. -
onNoDeal
This will be invoked if no protocols are returned from the server or selectProtocol returnsnull.
-