java.lang.Object
swim.io.warp.AbstractWarpSocket
- All Implemented Interfaces:
- FlowContext,- IpContext,- WarpSocket
public abstract class AbstractWarpSocket
extends Object
implements WarpSocket, IpContext, FlowContext
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
AbstractWarpSocketpublic AbstractWarpSocket()
 
- 
- 
Method Details- 
warpSocketContext- Specified by:
- warpSocketContextin interface- WarpSocket
 
- 
setWarpSocketContext- Specified by:
- setWarpSocketContextin interface- WarpSocket
 
- 
idleTimeoutpublic long idleTimeout()- Specified by:
- idleTimeoutin interface- WarpSocket
 
- 
doReadpublic void doRead()- Specified by:
- doReadin interface- WarpSocket
 
- 
didRead- Specified by:
- didReadin interface- WarpSocket
 
- 
didRead- Specified by:
- didReadin interface- WarpSocket
 
- 
doWritepublic void doWrite()- Specified by:
- doWritein interface- WarpSocket
 
- 
didWrite- Specified by:
- didWritein interface- WarpSocket
 
- 
didWrite- Specified by:
- didWritein interface- WarpSocket
 
- 
didUpgrade- Specified by:
- didUpgradein interface- WarpSocket
 
- 
willConnectpublic void willConnect()- Specified by:
- willConnectin interface- WarpSocket
 
- 
didConnectpublic void didConnect()- Specified by:
- didConnectin interface- WarpSocket
 
- 
willSecurepublic void willSecure()- Specified by:
- willSecurein interface- WarpSocket
 
- 
didSecurepublic void didSecure()- Specified by:
- didSecurein interface- WarpSocket
 
- 
willBecome- Specified by:
- willBecomein interface- WarpSocket
 
- 
didBecome- Specified by:
- didBecomein interface- WarpSocket
 
- 
didTimeoutpublic void didTimeout()- Specified by:
- didTimeoutin interface- WarpSocket
 
- 
didDisconnectpublic void didDisconnect()- Specified by:
- didDisconnectin interface- WarpSocket
 
- 
didFail- Specified by:
- didFailin interface- WarpSocket
 
- 
isConnectedpublic boolean isConnected()Description copied from interface:IpContextReturnstrueif the underlying network channel is currently connected.- Specified by:
- isConnectedin interface- IpContext
 
- 
isClientpublic boolean isClient()Description copied from interface:IpContextReturnstrueif the underlying network channel initiated an outgoing connection.
- 
isServerpublic boolean isServer()Description copied from interface:IpContextReturnstrueif the underlying network channel accepted an incoming connection.
- 
isSecurepublic boolean isSecure()Description copied from interface:IpContextReturnstrueif the underlying network transport is encrypted.
- 
securityProtocolDescription 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 interface- IpContext
 
- 
cipherSuiteDescription 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 interface- IpContext
 
- 
localAddressDescription 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 interface- IpContext
 
- 
localPrincipalDescription 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 interface- IpContext
 
- 
localCertificatesDescription 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 interface- IpContext
 
- 
remoteAddressDescription 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 interface- IpContext
 
- 
remotePrincipalDescription 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 interface- IpContext
 
- 
remoteCertificatesDescription 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 interface- IpContext
 
- 
flowControlDescription copied from interface:FlowContextReturns the currentFlowControlstate of the underlying network channel.- Specified by:
- flowControlin interface- FlowContext
 
- 
flowControlDescription copied from interface:FlowContextEnqueues an atomic replacement of the underlying network channel's flow control state with a newflowControl.- Specified by:
- flowControlin interface- FlowContext
 
- 
flowControlDescription copied from interface:FlowContextEnqueues an atomic modification to the underlying network channel's flow control state by applying aflowModifierdelta.- Specified by:
- flowControlin interface- FlowContext
 
- 
warpSettings
- 
feed
- 
feed
- 
feed
- 
write
- 
become
- 
closepublic void close()
 
-