public static interface NextProtoNego.ClientProvider extends NextProtoNego.Provider
The client-side provider interface that applications must implement to interact with the negotiation of the next protocol.
Modifier and Type | Method and Description |
---|---|
String |
selectProtocol(List<String> protocols)
Callback invoked to let the application select a protocol
among the ones sent by the server.
|
boolean |
supports()
Callback invoked to let the implementation know whether an
empty NPN extension should be added to a ClientHello SSL message.
|
void |
unsupported()
Callback invoked to let the application know that the server does
not support NPN.
|
boolean supports()
Callback invoked to let the implementation know whether an empty NPN extension should be added to a ClientHello SSL message.
void unsupported()
Callback invoked to let the application know that the server does not support NPN.
String selectProtocol(List<String> protocols)
Callback invoked to let the application select a protocol among the ones sent by the server.
protocols
- the protocols sent by the serverCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.