- java.lang.Object
-
- swim.io.http.AbstractHttpClient
-
- swim.io.ws.AbstractWsClient
-
- swim.io.warp.AbstractWarpClient
-
- All Implemented Interfaces:
FlowContext
,HttpClient
,IpContext
,WebSocketContext<Envelope,Envelope>
public abstract class AbstractWarpClient extends AbstractWsClient implements WebSocketContext<Envelope,Envelope>
-
-
Field Summary
Fields Modifier and Type Field Description protected WarpSettings
warpSettings
-
Fields inherited from class swim.io.ws.AbstractWsClient
wsSettings
-
Fields inherited from class swim.io.http.AbstractHttpClient
context
-
-
Constructor Summary
Constructors Constructor Description AbstractWarpClient()
AbstractWarpClient(WarpSettings warpSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <I2 extends Envelope>
voidread(Decoder<I2> payloadDecoder)
<I2 extends Envelope>
voidread(WsOpcode frameType, Decoder<I2> payloadDecoder)
void
setHttpClientContext(HttpClientContext context)
protected WsUpgradeRequester
upgrade(WarpSocket warpSocket, WsRequest wsRequest)
WarpSettings
warpSettings()
<O2 extends Envelope>
voidwrite(WsControlFrame<?,O2> frame)
<O2 extends Envelope>
voidwrite(WsDataFrame<O2> frame)
-
Methods inherited from class swim.io.ws.AbstractWsClient
upgrade, wsSettings
-
Methods inherited from class swim.io.http.AbstractHttpClient
become, cipherSuite, close, didBecome, didConnect, didDisconnect, didFail, didRequest, didRespond, didSecure, didTimeout, doRequest, flowControl, flowControl, flowControl, httpClientContext, httpSettings, idleTimeout, isClient, isConnected, isSecure, isServer, localAddress, localCertificates, localPrincipal, readResponse, remoteAddress, remoteCertificates, remotePrincipal, securityProtocol, willBecome, willConnect, willRequest, willRespond, willSecure
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.io.FlowContext
flowControl, flowControl, flowControl
-
Methods inherited from interface swim.io.IpContext
cipherSuite, isClient, isConnected, isSecure, isServer, localAddress, localCertificates, localPrincipal, remoteAddress, remoteCertificates, remotePrincipal, securityProtocol
-
Methods inherited from interface swim.io.ws.WebSocketContext
become, close, wsSettings
-
-
-
-
Field Detail
-
warpSettings
protected WarpSettings warpSettings
-
-
Constructor Detail
-
AbstractWarpClient
public AbstractWarpClient(WarpSettings warpSettings)
-
AbstractWarpClient
public AbstractWarpClient()
-
-
Method Detail
-
setHttpClientContext
public void setHttpClientContext(HttpClientContext context)
- Specified by:
setHttpClientContext
in interfaceHttpClient
- Overrides:
setHttpClientContext
in classAbstractWsClient
-
read
public <I2 extends Envelope> void read(Decoder<I2> payloadDecoder)
- Specified by:
read
in interfaceWebSocketContext<Envelope,Envelope>
-
read
public <I2 extends Envelope> void read(WsOpcode frameType, Decoder<I2> payloadDecoder)
- Specified by:
read
in interfaceWebSocketContext<Envelope,Envelope>
-
write
public <O2 extends Envelope> void write(WsDataFrame<O2> frame)
- Specified by:
write
in interfaceWebSocketContext<Envelope,Envelope>
-
write
public <O2 extends Envelope> void write(WsControlFrame<?,O2> frame)
- Specified by:
write
in interfaceWebSocketContext<Envelope,Envelope>
-
warpSettings
public final WarpSettings warpSettings()
-
upgrade
protected WsUpgradeRequester upgrade(WarpSocket warpSocket, WsRequest wsRequest)
-
-