- java.lang.Object
-
- swim.io.http.AbstractHttpResponder<Object>
-
- swim.io.ws.WsUpgradeResponder
-
- All Implemented Interfaces:
FlowContext
,HttpResponder<Object>
,IpContext
public class WsUpgradeResponder extends AbstractHttpResponder<Object>
-
-
Field Summary
-
Fields inherited from class swim.io.http.AbstractHttpResponder
context
-
-
Constructor Summary
Constructors Constructor Description WsUpgradeResponder(WebSocket<?,?> webSocket, WsResponse wsResponse, WsSettings wsSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Decoder<Object>
contentDecoder(HttpRequest<?> httpRequest)
IpSocket
createSocket(WsEngine engine)
void
didDisconnect()
void
didRespond(HttpResponse<?> httpResponse)
void
doRespond(HttpRequest<Object> httpRequest)
WebSocket<?,?>
webSocket()
WsResponse
wsResponse()
WsSettings
wsSettings()
-
Methods inherited from class swim.io.http.AbstractHttpResponder
become, cipherSuite, close, didBecome, didFail, didRequest, didTimeout, flowControl, flowControl, flowControl, httpResponderContext, httpSettings, isClient, isConnected, isSecure, isServer, localAddress, localCertificates, localPrincipal, remoteAddress, remoteCertificates, remotePrincipal, securityProtocol, setHttpResponderContext, willBecome, willRequest, willRespond, writeResponse
-
-
-
-
Constructor Detail
-
WsUpgradeResponder
public WsUpgradeResponder(WebSocket<?,?> webSocket, WsResponse wsResponse, WsSettings wsSettings)
-
-
Method Detail
-
webSocket
public final WebSocket<?,?> webSocket()
-
wsResponse
public final WsResponse wsResponse()
-
wsSettings
public final WsSettings wsSettings()
-
contentDecoder
public Decoder<Object> contentDecoder(HttpRequest<?> httpRequest)
- Specified by:
contentDecoder
in interfaceHttpResponder<Object>
- Overrides:
contentDecoder
in classAbstractHttpResponder<Object>
-
doRespond
public void doRespond(HttpRequest<Object> httpRequest)
- Specified by:
doRespond
in interfaceHttpResponder<Object>
- Overrides:
doRespond
in classAbstractHttpResponder<Object>
-
didRespond
public void didRespond(HttpResponse<?> httpResponse)
- Specified by:
didRespond
in interfaceHttpResponder<Object>
- Overrides:
didRespond
in classAbstractHttpResponder<Object>
-
didDisconnect
public void didDisconnect()
- Specified by:
didDisconnect
in interfaceHttpResponder<Object>
- Overrides:
didDisconnect
in classAbstractHttpResponder<Object>
-
-