Class WebsocketDeploymentUtils
java.lang.Object
io.fluxzero.testserver.websocket.WebsocketDeploymentUtils
Utility methods for mapping Fluxzero test-server WebSocket endpoints onto the embedded Jetty transport.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JettyWebsocketRouterdeploy(Function<String, WebsocketEndpoint> endpointSupplier, String path, JettyWebsocketRouter router) Registers a namespace-aware endpoint route.static JettyWebsocketRouterdeployFromSession(MemoizingFunction<ServerWebsocketSession, WebsocketEndpoint> endpointSupplier, String path, JettyWebsocketRouter router) Registers a route whose endpoint can be resolved from the complete WebSocket session.static StringgetNamespace(ServerWebsocketSession session) Resolves the test-server namespace from modernnamespaceor legacyprojectIdquery parameters.
-
Field Details
-
HANDSHAKE_HEADERS_USER_PROPERTY
-
RUNTIME_SESSION_ID_USER_PROPERTY
-
SELECTED_COMPRESSION_ALGORITHM_USER_PROPERTY
-
SELECTED_TRANSPORT_FORMAT_USER_PROPERTY
-
-
Constructor Details
-
WebsocketDeploymentUtils
public WebsocketDeploymentUtils()
-
-
Method Details
-
deploy
public static JettyWebsocketRouter deploy(Function<String, WebsocketEndpoint> endpointSupplier, String path, JettyWebsocketRouter router) Registers a namespace-aware endpoint route. -
deployFromSession
public static JettyWebsocketRouter deployFromSession(MemoizingFunction<ServerWebsocketSession, WebsocketEndpoint> endpointSupplier, String path, JettyWebsocketRouter router) Registers a route whose endpoint can be resolved from the complete WebSocket session. -
getNamespace
Resolves the test-server namespace from modernnamespaceor legacyprojectIdquery parameters.
-