java.lang.Object
swim.io.warp.AbstractWarpSocket
- All Implemented Interfaces:
FlowContext,IpContext,WarpSocket
public abstract class AbstractWarpSocket
extends Object
implements WarpSocket, IpContext, FlowContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the cryptographic cipher suite used by the underlying network connection.voidclose()voidvoidvoidvoidvoidvoiddidRead(WsControlFrame<?, ?> frame) voidvoidvoiddidUpgrade(HttpRequest<?> httpRequest, HttpResponse<?> httpResponse) voidvoiddidWrite(WsControlFrame<?, ?> frame) voiddoRead()voiddoWrite()voidfeed(PullRequest<Envelope> pullRequest) voidvoidReturns the currentFlowControlstate of the underlying network channel.voidflowControl(FlowControl flowControl) Enqueues an atomic replacement of the underlying network channel's flow control state with a newflowControl.flowControl(FlowModifier flowModifier) Enqueues an atomic modification to the underlying network channel's flow control state by applying aflowModifierdelta.longbooleanisClient()Returnstrueif the underlying network channel initiated an outgoing connection.booleanReturnstrueif the underlying network channel is currently connected.booleanisSecure()Returnstrueif the underlying network transport is encrypted.booleanisServer()Returnstrueif the underlying network channel accepted an incoming connection.Returns the IP address and port of the local endpoint of the underlying network connection.Returns the certificate chain used to authenticate the local endpoint of the underlying network connection.Returns the authenticated identity of the local endpoint of the underlying network connection.Returns the IP address and port of the remote endpoint of the underlying network connection.Returns the certificate chain used to authenticate the remote endpoint of the underlying network connection.Returns the authenticated identity of the remote endpoint of the underlying network connection.Returns the name of the transport-layer security protocol used by the underlying network connection.voidsetWarpSocketContext(WarpSocketContext context) voidwillBecome(IpSocket socket) voidvoidvoidwrite(WsControlFrame<?, ? extends Envelope> frame)
-
Field Details
-
context
-
-
Constructor Details
-
AbstractWarpSocket
public AbstractWarpSocket()
-
-
Method Details
-
warpSocketContext
- Specified by:
warpSocketContextin interfaceWarpSocket
-
setWarpSocketContext
- Specified by:
setWarpSocketContextin interfaceWarpSocket
-
idleTimeout
public long idleTimeout()- Specified by:
idleTimeoutin interfaceWarpSocket
-
doRead
public void doRead()- Specified by:
doReadin interfaceWarpSocket
-
didRead
- Specified by:
didReadin interfaceWarpSocket
-
didRead
- Specified by:
didReadin interfaceWarpSocket
-
doWrite
public void doWrite()- Specified by:
doWritein interfaceWarpSocket
-
didWrite
- Specified by:
didWritein interfaceWarpSocket
-
didWrite
- Specified by:
didWritein interfaceWarpSocket
-
didUpgrade
- Specified by:
didUpgradein interfaceWarpSocket
-
willConnect
public void willConnect()- Specified by:
willConnectin interfaceWarpSocket
-
didConnect
public void didConnect()- Specified by:
didConnectin interfaceWarpSocket
-
willSecure
public void willSecure()- Specified by:
willSecurein interfaceWarpSocket
-
didSecure
public void didSecure()- Specified by:
didSecurein interfaceWarpSocket
-
willBecome
- Specified by:
willBecomein interfaceWarpSocket
-
didBecome
- Specified by:
didBecomein interfaceWarpSocket
-
didTimeout
public void didTimeout()- Specified by:
didTimeoutin interfaceWarpSocket
-
didDisconnect
public void didDisconnect()- Specified by:
didDisconnectin interfaceWarpSocket
-
didFail
- Specified by:
didFailin interfaceWarpSocket
-
isConnected
public boolean isConnected()Description copied from interface:IpContextReturnstrueif the underlying network channel is currently connected.- Specified by:
isConnectedin interfaceIpContext
-
isClient
public boolean isClient()Description copied from interface:IpContextReturnstrueif the underlying network channel initiated an outgoing connection. -
isServer
public boolean isServer()Description copied from interface:IpContextReturnstrueif the underlying network channel accepted an incoming connection. -
isSecure
public boolean isSecure()Description copied from interface:IpContextReturnstrueif the underlying network transport is encrypted. -
securityProtocol
Description copied from interface:IpContextReturns the name of the transport-layer security protocol used by the underlying network connection. Returnsnullif the underlying network channel is not currently connected, or if the underlying network connection is not secure.- Specified by:
securityProtocolin interfaceIpContext
-
cipherSuite
Description copied from interface:IpContextReturns the cryptographic cipher suite used by the underlying network connection. Returnsnullif the underlying network channel is not currently connected, or if the underlying network connection is not secure.- Specified by:
cipherSuitein interfaceIpContext
-
localAddress
Description copied from interface:IpContextReturns the IP address and port of the local endpoint of the underlying network connection. Returnsnullif the underlying network channel is not currently connected.- Specified by:
localAddressin interfaceIpContext
-
localPrincipal
Description copied from interface:IpContextReturns the authenticated identity of the local endpoint of the underlying network connection. Returnsnullif the underlying network channel is not currently connected, or if the underlying network connection is not authenticated.- Specified by:
localPrincipalin interfaceIpContext
-
localCertificates
Description copied from interface:IpContextReturns the certificate chain used to authenticate the local endpoint of the underlying network connection. Returnsnullif the underlying network channel is not currently connected, or if the underlying network connection is not authenticated.- Specified by:
localCertificatesin interfaceIpContext
-
remoteAddress
Description copied from interface:IpContextReturns the IP address and port of the remote endpoint of the underlying network connection. Returnsnullif the underlying network channel is not currently connected.- Specified by:
remoteAddressin interfaceIpContext
-
remotePrincipal
Description copied from interface:IpContextReturns the authenticated identity of the remote endpoint of the underlying network connection. Returnsnullif the underlying network channel is not currently connected, or if the underlying network connection is not authenticated.- Specified by:
remotePrincipalin interfaceIpContext
-
remoteCertificates
Description copied from interface:IpContextReturns the certificate chain used to authenticate the remote endpoint of the underlying network connection. Returnsnullif the underlying network channel is not currently connected, or if the underlying network connection is not authenticated.- Specified by:
remoteCertificatesin interfaceIpContext
-
flowControl
Description copied from interface:FlowContextReturns the currentFlowControlstate of the underlying network channel.- Specified by:
flowControlin interfaceFlowContext
-
flowControl
Description copied from interface:FlowContextEnqueues an atomic replacement of the underlying network channel's flow control state with a newflowControl.- Specified by:
flowControlin interfaceFlowContext
-
flowControl
Description copied from interface:FlowContextEnqueues an atomic modification to the underlying network channel's flow control state by applying aflowModifierdelta.- Specified by:
flowControlin interfaceFlowContext
-
warpSettings
-
feed
-
feed
-
feed
-
write
-
become
-
close
public void close()
-