- java.lang.Object
-
- swim.ws.WsResponse
-
public class WsResponse extends Object
WebSocket handshake response.
-
-
Field Summary
Fields Modifier and Type Field Description protected FingerTrieSeq<WebSocketExtension>
extensions
protected HttpRequest<?>
httpRequest
protected HttpResponse<?>
httpResponse
protected String
protocol
-
Constructor Summary
Constructors Constructor Description WsResponse(HttpRequest<?> httpRequest, HttpResponse<?> httpResponse, String protocol, FingerTrieSeq<WebSocketExtension> extensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WsEngine
clientEngine(WsEngineSettings settings)
FingerTrieSeq<WebSocketExtension>
extensions()
HttpRequest<?>
httpRequest()
HttpResponse<?>
httpResponse()
String
protocol()
WsEngine
serverEngine(WsEngineSettings settings)
-
-
-
Field Detail
-
httpRequest
protected final HttpRequest<?> httpRequest
-
httpResponse
protected final HttpResponse<?> httpResponse
-
protocol
protected final String protocol
-
extensions
protected final FingerTrieSeq<WebSocketExtension> extensions
-
-
Constructor Detail
-
WsResponse
public WsResponse(HttpRequest<?> httpRequest, HttpResponse<?> httpResponse, String protocol, FingerTrieSeq<WebSocketExtension> extensions)
-
-
Method Detail
-
httpRequest
public final HttpRequest<?> httpRequest()
-
httpResponse
public final HttpResponse<?> httpResponse()
-
protocol
public final String protocol()
-
extensions
public final FingerTrieSeq<WebSocketExtension> extensions()
-
clientEngine
public WsEngine clientEngine(WsEngineSettings settings)
-
serverEngine
public WsEngine serverEngine(WsEngineSettings settings)
-
-