public class WebSocketClientConnection extends AbstractWebSocketConnection
AbstractWebSocketConnection.StatsConnection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo| Constructor and Description |
|---|
WebSocketClientConnection(EndPoint endp,
java.util.concurrent.Executor executor,
Scheduler scheduler,
WebSocketPolicy websocketPolicy,
ByteBufferPool bufferPool) |
| Modifier and Type | Method and Description |
|---|---|
java.net.InetSocketAddress |
getLocalAddress()
Get the local
InetSocketAddress in use for this connection. |
java.net.InetSocketAddress |
getRemoteAddress()
Get the remote Address in use for this connection.
|
void |
outgoingFrame(Frame frame,
WriteCallback callback,
BatchMode batchMode)
Override to set the masker.
|
void |
setNextIncomingFrames(IncomingFrames incoming)
Set where the connection should send the incoming frames to.
|
close, disconnect, dump, dump, equals, fillInterested, getBufferPool, getExecutor, getExtensions, getGenerator, getId, getIdleTimeout, getIOState, getMaxIdleTimeout, getParser, getPolicy, getScheduler, getStats, hashCode, isOpen, isReading, onClose, onConnectionStateChange, onFillable, onFillInterestedFailed, onIdleExpired, onLocalClose, onOpen, onReadTimeout, onUpgradeTo, resume, setExtensions, setInitialBuffer, setInputBufferSize, setMaxIdleTimeout, setSession, suspend, toConnectionStringaddListener, failedCallback, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, removeListener, toString, tryFillInterested, tryFillInterestedpublic WebSocketClientConnection(EndPoint endp, java.util.concurrent.Executor executor, Scheduler scheduler, WebSocketPolicy websocketPolicy, ByteBufferPool bufferPool)
public java.net.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 java.net.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 outgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode)
outgoingFrame in interface OutgoingFramesoutgoingFrame in class AbstractWebSocketConnectionframe - the frame to eventually write to the network layer.callback - the callback to notify when the frame is written.batchMode - the batch mode requested by the sender.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–2018 Webtide. All rights reserved.