WebSocketConnectionImpl

class WebSocketConnectionImpl : AbstractHttpConnection , WebSocketConnection , IncomingFrames {}

Constructors

this
this(Connection tcpSession, IncomingFrames nextIncomingFrames, WebSocketPolicy policy, HttpRequest upgradeRequest, HttpResponse upgradeResponse, HttpOptions config)
Undocumented in source.

Members

Functions

containsAttribute
bool containsAttribute(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
generateMask
byte[] generateMask()
Undocumented in source. Be warned that the author may not have intended to support it.
getAttribute
Object getAttribute(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
getConnectionType
HttpConnectionType getConnectionType()
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.
getHttpVersion
HttpVersion getHttpVersion()
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.
getId
int getId()
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.
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.
getRemoteAddress
Address getRemoteAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
getTcpConnection
Connection getTcpConnection()
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.
incomingError
void incomingError(Exception t)
Undocumented in source. Be warned that the author may not have intended to support it.
incomingFrame
void incomingFrame(WebSocketFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
isConnected
bool isConnected()
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!(HttpConnection) handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onException
WebSocketConnection onException(Action2!(HttpConnection, Exception) handler)
Undocumented in source. Be warned that the author may not have intended to support it.
outgoingFrame
void outgoingFrame(WebSocketFrame frame, Callback callback)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAttribute
Object removeAttribute(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
sendData
FuturePromise!(bool) sendData(byte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
sendData
FuturePromise!(bool) sendData(ByteBuffer data)
Undocumented in source. Be warned that the author may not have intended to support it.
sendText
FuturePromise!(bool) sendText(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
setAttribute
void setAttribute(string key, Object value)
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
HttpOptions config;
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 AbstractHttpConnection

executor
ScheduledThreadPoolExecutor executor;
Undocumented in source.
_tcpSession
Connection _tcpSession;
Undocumented in source.
_httpVersion
HttpVersion _httpVersion;
Undocumented in source.
_closeHandler
Action1!HttpConnection _closeHandler;
Undocumented in source.
_exceptionHandler
Action2!(HttpConnection, Exception) _exceptionHandler;
Undocumented in source.
getTcpConnection
Connection getTcpConnection()
Undocumented in source. Be warned that the author may not have intended to support it.
getConnectionType
HttpConnectionType getConnectionType()
Undocumented in source.
getLocalAddress
Address getLocalAddress()
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.
getHttpVersion
HttpVersion getHttpVersion()
Undocumented in source. Be warned that the author may not have intended to support it.
getId
int getId()
Undocumented in source. Be warned that the author may not have intended to support it.
isSecured
bool isSecured()
Undocumented in source. Be warned that the author may not have intended to support it.
setAttribute
void setAttribute(string key, Object value)
Undocumented in source. Be warned that the author may not have intended to support it.
getAttribute
Object getAttribute(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAttribute
Object removeAttribute(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
containsAttribute
bool containsAttribute(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
onClose
HttpConnection onClose(Action1!HttpConnection handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onException
HttpConnection onException(Action2!(HttpConnection, Exception) handler)
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.
close
void close()

From WebSocketConnection

isConnected
bool isConnected()

Get the read/write idle timeout.

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
FuturePromise!(bool) sendText(string text)

Send text message.

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

Send binary message.

sendData
FuturePromise!(bool) sendData(ByteBuffer data)

Send binary message.

getUpgradeRequest
HttpRequest getUpgradeRequest()

Get the websocket upgrade request.

getUpgradeResponse
HttpResponse getUpgradeResponse()

Get the websocket upgrade response.

getPath
string getPath()
Undocumented in source. Be warned that the author may not have intended to support it.

From IncomingFrames

incomingError
void incomingError(Exception t)
Undocumented in source.
incomingFrame
void incomingFrame(WebSocketFrame 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