Package dev.voidframework.web.http
Class WebSocketContext
java.lang.Object
dev.voidframework.web.http.WebSocketContext
A WebSocket request context.
-
Constructor Summary
ConstructorsConstructorDescriptionWebSocketContext(WebSocketRequest webSocketRequest, io.undertow.websockets.core.WebSocketChannel webSocketChannel) Build a new instance. -
Method Summary
Modifier and TypeMethodDescriptionio.undertow.websockets.core.WebSocketChannelRetrieves the WebSocket channel.Retrieves the request.
-
Constructor Details
-
WebSocketContext
public WebSocketContext(WebSocketRequest webSocketRequest, io.undertow.websockets.core.WebSocketChannel webSocketChannel) Build a new instance.- Parameters:
webSocketRequest- The WebSocket requestwebSocketChannel- The WebSocket channel
-
-
Method Details
-
getRequest
Retrieves the request.- Returns:
- The current request
-
getChannel
public io.undertow.websockets.core.WebSocketChannel getChannel()Retrieves the WebSocket channel.- Returns:
- The WebSocket channel
-