public class WebSocketClientConnection extends AbstractWebSocketConnection
AbstractWebSocketConnection.StatsConnection.ListenerEXECUTE_ONFILLABLE| Constructor and Description |
|---|
WebSocketClientConnection(EndPoint endp,
Executor executor,
ConnectPromise connectPromise) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getLocalAddress()
Get the local
InetSocketAddress in use for this connection. |
InetSocketAddress |
getRemoteAddress()
Get the remote Address in use for this connection.
|
void |
onClose()
Physical connection disconnect.
|
void |
onOpen()
Callback method invoked when this
Connection is opened. |
void |
outgoingFrame(Frame frame,
WriteCallback callback)
Overrride to set masker
|
void |
setNextIncomingFrames(IncomingFrames incoming)
Set where the connection should send the incoming frames to.
|
close, close, complete, disconnect, disconnect, execute, fillInterested, flush, getBufferPool, getExtensions, getGenerator, getIOState, getMaxIdleTimeout, getParser, getPolicy, getScheduler, getSession, getStats, isOpen, isReading, onConnectionStateChange, onFillable, onFillInterestedFailed, onReadTimeout, resume, setExtensions, setInputBufferSize, setMaxIdleTimeout, setSession, suspend, toStringaddListener, block, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOutpublic WebSocketClientConnection(EndPoint endp, Executor executor, ConnectPromise connectPromise)
public InetSocketAddress getLocalAddress()
LogicalConnectionInetSocketAddress in use for this connection.
Note: Non-physical connections, like during the Mux extensions, or during unit testing can result in a InetSocketAddress on port 0 and/or on localhost.
public InetSocketAddress getRemoteAddress()
LogicalConnectionNote: Non-physical connections, like during the Mux extensions, or during unit testing can result in a InetSocketAddress on port 0 and/or on localhost.
getRemoteAddress in interface LogicalConnectiongetRemoteAddress in class AbstractWebSocketConnectionpublic void onClose()
AbstractWebSocketConnectionNot related to WebSocket close handshake.
onClose in interface ConnectiononClose in class AbstractWebSocketConnectionpublic void onOpen()
ConnectionCallback method invoked when this Connection is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen in interface ConnectiononOpen in class AbstractWebSocketConnectionpublic void outgoingFrame(Frame frame, WriteCallback callback)
outgoingFrame in interface OutgoingFramesoutgoingFrame in class AbstractWebSocketConnectionframe - the frame to eventually write to the network.callback - the optional callback to use for success/failure of the network write operation. Can be null.public void setNextIncomingFrames(IncomingFrames incoming)
LogicalConnectionOften this is from the Parser to the start of the extension stack, and eventually on to the session.
incoming - the incoming frames handlerCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.