public class WebSocketServerConnection extends AbstractWebSocketConnection implements Connection.UpgradeTo
AbstractWebSocketConnection.OnCloseLocalCallback, AbstractWebSocketConnection.OnDisconnectCallback, AbstractWebSocketConnection.Stats
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
Constructor and Description |
---|
WebSocketServerConnection(EndPoint endp,
Executor executor,
Scheduler scheduler,
WebSocketPolicy policy,
ByteBufferPool bufferPool) |
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 |
setNextIncomingFrames(IncomingFrames incoming)
Set where the connection should send the incoming frames to.
|
close, close, disconnect, dump, dump, equals, execute, fillInterested, getBufferPool, getExecutor, getExtensions, getGenerator, getId, getIdleTimeout, getIOState, getMaxIdleTimeout, getParser, getPolicy, getScheduler, getStats, hashCode, isOpen, isReading, onClose, onConnectionStateChange, onFillable, onFillInterestedFailed, onOpen, onReadTimeout, onUpgradeTo, outgoingFrame, resume, setExtensions, setInitialBuffer, setInputBufferSize, setMaxIdleTimeout, suspend, toString
addListener, failedCallback, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getInputBufferSize, getMessagesIn, getMessagesOut, isDispatchIO, isFillInterested, onIdleExpired, removeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
onUpgradeTo
addListener, close, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getMessagesIn, getMessagesOut, onClose, onIdleExpired, onOpen, removeListener
public WebSocketServerConnection(EndPoint endp, Executor executor, Scheduler scheduler, WebSocketPolicy policy, ByteBufferPool bufferPool)
public InetSocketAddress getLocalAddress()
LogicalConnection
InetSocketAddress
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.
getLocalAddress
in interface LogicalConnection
public InetSocketAddress getRemoteAddress()
LogicalConnection
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.
getRemoteAddress
in interface LogicalConnection
getRemoteAddress
in class AbstractWebSocketConnection
public void setNextIncomingFrames(IncomingFrames incoming)
LogicalConnection
Often this is from the Parser to the start of the extension stack, and eventually on to the session.
setNextIncomingFrames
in interface LogicalConnection
incoming
- the incoming frames handlerCopyright © 1995-2016 Webtide. All Rights Reserved.