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

Mutable registry that collects WebSocket routes during module registration. More...

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

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.

Detailed Description

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.

Member Function Documentation

◆ add()

void dev.rafex.ether.websocket.jetty12.JettyWebSocketRouteRegistry.add ( final String pattern,
final WebSocketEndpoint endpoint )

Registers a WebSocket endpoint under the given URL path pattern.

Parameters
patternthe URL path pattern (e.g. "/ws/{channel}")
endpointthe WebSocket endpoint to invoke when the pattern matches

Definition at line 52 of file JettyWebSocketRouteRegistry.java.

◆ routes()

List< WebSocketRoute > dev.rafex.ether.websocket.jetty12.JettyWebSocketRouteRegistry.routes ( )

Returns an unmodifiable snapshot of all registered routes.

Returns
a copy of the current route list

Definition at line 61 of file JettyWebSocketRouteRegistry.java.


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