Package akka.http.javadsl.model.ws
Class WebSocket
- java.lang.Object
-
- akka.http.javadsl.model.ws.WebSocket
-
public class WebSocket extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WebSocket()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpResponse
handleWebSocketRequestWith(HttpRequest request, akka.stream.javadsl.Flow<Message,Message,?> handler)
If a given request is a WebSocket request a response accepting the request is returned using the given handler to handle the WebSocket message stream.
-
-
-
Method Detail
-
handleWebSocketRequestWith
public static HttpResponse handleWebSocketRequestWith(HttpRequest request, akka.stream.javadsl.Flow<Message,Message,?> handler)
If a given request is a WebSocket request a response accepting the request is returned using the given handler to handle the WebSocket message stream. If the request wasn't a WebSocket request a response with status code 400 is returned.- Parameters:
request
- (undocumented)handler
- (undocumented)- Returns:
- (undocumented)
-
-