Interface ALPN.ServerProvider

All Superinterfaces:
ALPN.Provider
Enclosing class:
ALPN

public static interface ALPN.ServerProvider extends ALPN.Provider
The server-side provider interface that applications must implement to interact with the negotiation of the protocol.
  • Method Summary

    Modifier and Type
    Method
    Description
    select(List<String> protocols)
    Callback invoked to let the server application select a protocol among the ones sent by the client.
    void
    Callback invoked to let the server application know that the client does not support ALPN.
  • Method Details

    • unsupported

      void unsupported()
      Callback invoked to let the server application know that the client does not support ALPN.
    • select

      String select(List<String> protocols)
      Callback invoked to let the server application select a protocol among the ones sent by the client.
      Parameters:
      protocols - the protocols sent by the client
      Returns:
      the protocol selected by the server application; must not be null