Interface WebSocketSubprotocolRoute<A>

Type Parameters:
A - the resource type
All Superinterfaces:
Route<A>

public interface WebSocketSubprotocolRoute<A> extends Route<A>

A WebSocket subprotocol route.

This is used to define route based on the WebSocket subprotocol specified in an input. For instance, in order to resolve a handler for a WebSocket request with subprotocol json, a WebSocket subprotocol route must be defined with subprotocol json targeting a WSebSocket handler consuming and producing json messages.

Since:
1.12
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • getSubprotocol

      String getSubprotocol()

      Returns a WebSocket subprotocol.

      Returns:
      a WebSocket subprotocol or null