WebSocket upgrade helpers shared by the Jetty server factories. More...
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. | |
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.
|
static |
Builds the JettyWebSocketEndpointAdapter for a matched route from an upgrade request, negotiating a subprotocol on the response if supported.
| route | the matched WebSocket route |
| request | the upgrade request |
| response | the upgrade response (its accepted subprotocol may be set) |
Definition at line 66 of file JettyWebSocketUpgrades.java.
References dev.rafex.ether.websocket.core.WebSocketPatterns.match().