Module io.inverno.mod.web.server
Package io.inverno.mod.web.server.ws
Interface Web2SocketExchange<A extends ExchangeContext>
- Type Parameters:
A- the exchange context type
- All Superinterfaces:
BaseWeb2SocketExchange<A>,BaseWebSocketExchange<A>,WebSocketExchange<A>
public interface Web2SocketExchange<A extends ExchangeContext>
extends WebSocketExchange<A>, BaseWeb2SocketExchange<A>
A WebSocket exchange that extends the HTTP server WebSocketExchange with features for the Web.
It supports inbound and outbound message decoding and encoding based on the negotiated subProtocol which is interpreted as a compact application media types (see
MediaTypes.normalizeApplicationMediaType(java.lang.String)).
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.inverno.mod.web.base.ws.BaseWeb2SocketExchange
BaseWeb2SocketExchange.Inbound, BaseWeb2SocketExchange.OutboundNested classes/interfaces inherited from interface io.inverno.mod.http.base.ws.BaseWebSocketExchange
BaseWebSocketExchange.Inbound, BaseWebSocketExchange.Outbound -
Method Summary
Methods inherited from interface io.inverno.mod.web.base.ws.BaseWeb2SocketExchange
inbound, outboundMethods inherited from interface io.inverno.mod.http.base.ws.BaseWebSocketExchange
close, close, close, close, close, close, context, getSubprotocol
-
Method Details
-
request
WebRequest request()Description copied from interface:WebSocketExchangeReturns the original HTTP upgrade request.
- Specified by:
requestin interfaceWebSocketExchange<A extends ExchangeContext>- Returns:
- the HTTP request
-