WebSocketConnectionImpl

class WebSocketConnectionImpl : AbstractConnection, WebSocketConnection , IncomingFrames {}

Constructors

this
this(SecureSession secureSession, Session tcpSession, IncomingFrames nextIncomingFrames, WebSocketPolicy policy, HttpRequest upgradeRequest, HttpResponse upgradeResponse, Http2Configuration config)
Undocumented in source.

Members

Functions

generateMask
byte[] generateMask()
Undocumented in source. Be warned that the author may not have intended to support it.
getAttachment
Object getAttachment()
Undocumented in source. Be warned that the author may not have intended to support it.
getCloseTime
long getCloseTime()
Undocumented in source. Be warned that the author may not have intended to support it.
getConnectionType
ConnectionType getConnectionType()
Undocumented in source. Be warned that the author may not have intended to support it.
getDuration
long getDuration()
Undocumented in source. Be warned that the author may not have intended to support it.
getExtensionNegotiator
ExtensionNegotiator getExtensionNegotiator()
Undocumented in source. Be warned that the author may not have intended to support it.
getGenerator
Generator getGenerator()
Undocumented in source. Be warned that the author may not have intended to support it.
getIOState
IOState getIOState()
Undocumented in source. Be warned that the author may not have intended to support it.
getIdleTimeout
long getIdleTimeout()
Undocumented in source. Be warned that the author may not have intended to support it.
getLastActiveTime
long getLastActiveTime()
Undocumented in source. Be warned that the author may not have intended to support it.
getLastReadTime
long getLastReadTime()
Undocumented in source. Be warned that the author may not have intended to support it.
getLastWrittenTime
long getLastWrittenTime()
Undocumented in source. Be warned that the author may not have intended to support it.
getLocalAddress
Address getLocalAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
getMaxIdleTimeout
long getMaxIdleTimeout()
Undocumented in source. Be warned that the author may not have intended to support it.
getOpenTime
long getOpenTime()
Undocumented in source. Be warned that the author may not have intended to support it.
getParser
Parser getParser()
Undocumented in source. Be warned that the author may not have intended to support it.
getPolicy
WebSocketPolicy getPolicy()
Undocumented in source. Be warned that the author may not have intended to support it.
getReadBytes
long getReadBytes()
Undocumented in source. Be warned that the author may not have intended to support it.
getRemoteAddress
Address getRemoteAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
getSessionId
int getSessionId()
Undocumented in source. Be warned that the author may not have intended to support it.
getUpgradeRequest
HttpRequest getUpgradeRequest()
Undocumented in source. Be warned that the author may not have intended to support it.
getUpgradeResponse
HttpResponse getUpgradeResponse()
Undocumented in source. Be warned that the author may not have intended to support it.
getWrittenBytes
long getWrittenBytes()
Undocumented in source. Be warned that the author may not have intended to support it.
incomingError
void incomingError(Exception t)
Undocumented in source. Be warned that the author may not have intended to support it.
incomingFrame
void incomingFrame(Frame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
isClosed
bool isClosed()
Undocumented in source. Be warned that the author may not have intended to support it.
isEncrypted
bool isEncrypted()
Undocumented in source. Be warned that the author may not have intended to support it.
isOpen
bool isOpen()
Undocumented in source. Be warned that the author may not have intended to support it.
notifyClose
void notifyClose()
Undocumented in source. Be warned that the author may not have intended to support it.
notifyException
void notifyException(Exception t)
Undocumented in source. Be warned that the author may not have intended to support it.
onClose
WebSocketConnection onClose(Action1!(WebSocketConnection) closedListener)
Undocumented in source. Be warned that the author may not have intended to support it.
onException
WebSocketConnection onException(Action2!(WebSocketConnection, Exception) exceptionListener)
Undocumented in source. Be warned that the author may not have intended to support it.
outgoingFrame
void outgoingFrame(Frame frame, Callback callback)
Undocumented in source. Be warned that the author may not have intended to support it.
sendData
CompletableFuture!(bool) sendData(byte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
sendData
CompletableFuture!(bool) sendData(ByteBuffer data)
Undocumented in source. Be warned that the author may not have intended to support it.
sendText
CompletableFuture!(bool) sendText(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
setAttachment
void setAttachment(Object attachment)
Undocumented in source. Be warned that the author may not have intended to support it.
setNextIncomingFrames
void setNextIncomingFrames(IncomingFrames nextIncomingFrames)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

config
Http2Configuration config;
Undocumented in source.
connectionEvent
ConnectionEvent!(WebSocketConnection) connectionEvent;
Undocumented in source.
extensionNegotiator
ExtensionNegotiator extensionNegotiator;
Undocumented in source.
generator
Generator generator;
Undocumented in source.
ioState
IOState ioState;
Undocumented in source.
parser
Parser parser;
Undocumented in source.
policy
WebSocketPolicy policy;
Undocumented in source.
upgradeRequest
HttpRequest upgradeRequest;
Undocumented in source.
upgradeResponse
HttpResponse upgradeResponse;
Undocumented in source.

Inherited Members

From WebSocketConnection

onClose
WebSocketConnection onClose(Action1!(WebSocketConnection) closedListener)

Register the connection close callback.

onException
WebSocketConnection onException(Action2!(WebSocketConnection, Exception) exceptionListener)

Register the exception callback.

getIOState
IOState getIOState()

Get the IOState of the connection.

getPolicy
WebSocketPolicy getPolicy()

The policy that the connection is running under.

generateMask
byte[] generateMask()

Generate random 4bytes mask key

sendText
CompletableFuture!(bool) sendText(string text)

Send text message.

sendData
CompletableFuture!(bool) sendData(byte[] data)

Send binary message.

sendData
CompletableFuture!(bool) sendData(ByteBuffer data)

Send binary message.

getUpgradeRequest
HttpRequest getUpgradeRequest()

Get the websocket upgrade request.

getUpgradeResponse
HttpResponse getUpgradeResponse()

Get the websocket upgrade response.

From IncomingFrames

incomingError
void incomingError(Exception t)
Undocumented in source.
incomingFrame
void incomingFrame(Frame frame)

Process the incoming frame. <p> Note: if you need to hang onto any information from the frame, be sure to copy it, as the information contained in the Frame will be released and/or reused by the implementation.

Meta