Package akka.http.javadsl.model.ws
Class WebSocket$
java.lang.Object
akka.http.javadsl.model.ws.WebSocket$
-
Field Summary
Modifier and TypeFieldDescriptionstatic final WebSocket$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandleWebSocketRequestWith
(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 Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
WebSocket$
public WebSocket$()
-
-
Method Details
-
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)
-