Class WebSocket$
java.lang.Object
org.apache.pekko.http.javadsl.model.ws.WebSocket$
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final WebSocket$Static reference to the singleton instance of this Scala object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionhandleWebSocketRequestWith(HttpRequest request, org.apache.pekko.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- 
handleWebSocketRequestWithpublic HttpResponse handleWebSocketRequestWith(HttpRequest request, org.apache.pekko.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)
 
 
-