Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
dev.rafex.ether.websocket.jetty12.JettyWebSocketUpgrades Class Reference

WebSocket upgrade helpers shared by the Jetty server factories. More...

Collaboration diagram for dev.rafex.ether.websocket.jetty12.JettyWebSocketUpgrades:

Static Public Member Functions

static Object createEndpoint (final WebSocketRoute route, final ServerUpgradeRequest request, final ServerUpgradeResponse response)
 Builds the JettyWebSocketEndpointAdapter for a matched route from an upgrade request, negotiating a subprotocol on the response if supported.

Detailed Description

WebSocket upgrade helpers shared by the Jetty server factories.

Both JettyWebSocketServerFactory and the WebSocket routing in ether-http-jetty12's JettyServerFactory build the same endpoint adapter from an upgrade request: extracting path params, headers and query params, and negotiating a subprotocol. This class centralises that logic so it exists once.

Definition at line 52 of file JettyWebSocketUpgrades.java.

Member Function Documentation

◆ createEndpoint()

Object dev.rafex.ether.websocket.jetty12.JettyWebSocketUpgrades.createEndpoint ( final WebSocketRoute route,
final ServerUpgradeRequest request,
final ServerUpgradeResponse response )
static

Builds the JettyWebSocketEndpointAdapter for a matched route from an upgrade request, negotiating a subprotocol on the response if supported.

Parameters
routethe matched WebSocket route
requestthe upgrade request
responsethe upgrade response (its accepted subprotocol may be set)
Returns
the endpoint adapter instance

Definition at line 66 of file JettyWebSocketUpgrades.java.

References dev.rafex.ether.websocket.core.WebSocketPatterns.match().

Here is the call graph for this function:

The documentation for this class was generated from the following file: