Mutable registry that collects WebSocket routes during module registration. More...
Public Member Functions | |
| void | add (final String pattern, final WebSocketEndpoint endpoint) |
| Registers a WebSocket endpoint under the given URL path pattern. | |
| List< WebSocketRoute > | routes () |
| Returns an unmodifiable snapshot of all registered routes. | |
Mutable registry that collects WebSocket routes during module registration.
Modules call add to bind a URL path pattern to a WebSocketEndpoint. After all modules have been processed, the factory reads the accumulated routes via routes.
Definition at line 42 of file JettyWebSocketRouteRegistry.java.
| void dev.rafex.ether.websocket.jetty12.JettyWebSocketRouteRegistry.add | ( | final String | pattern, |
| final WebSocketEndpoint | endpoint ) |
Registers a WebSocket endpoint under the given URL path pattern.
| pattern | the URL path pattern (e.g. "/ws/{channel}") |
| endpoint | the WebSocket endpoint to invoke when the pattern matches |
Definition at line 52 of file JettyWebSocketRouteRegistry.java.
| List< WebSocketRoute > dev.rafex.ether.websocket.jetty12.JettyWebSocketRouteRegistry.routes | ( | ) |
Returns an unmodifiable snapshot of all registered routes.
Definition at line 61 of file JettyWebSocketRouteRegistry.java.