Interface WebSocketExchange<A extends ExchangeContext>

Type Parameters:
A - the type of the exchange context
All Superinterfaces:
BaseWebSocketExchange<A>
All Known Subinterfaces:
Web2SocketExchange<A>

public interface WebSocketExchange<A extends ExchangeContext> extends BaseWebSocketExchange<A>

Represents a WebSocket exchange between a client and the server.

A WebSocket exchange is bidirectional and as a result provided an BaseWebSocketExchange.Inbound and an BaseWebSocketExchange.Outbound exposing WebSocket frames and messages respectively received and sent by the server.

A WebSocket exchange is created from the HTTP server exchange (see Exchange.webSocket(java.lang.String...)) once the WebSocket opening handshake has completed. It is processed in a WebSocketExchangeHandler specified in the WebSocket.

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

    • request

      Request request()

      Returns the original HTTP upgrade request.

      Returns:
      the HTTP request