Package akka.http.javadsl.model.ws
Class WebSocket$
- java.lang.Object
-
- akka.http.javadsl.model.ws.WebSocket$
-
public class WebSocket$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static WebSocket$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description WebSocket$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
MODULE$
public static final WebSocket$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
handleWebSocketRequestWith
public 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)
-
-