public class WebSocketServerConnection extends AbstractWebSocketConnection implements Connection.UpgradeTo
AbstractWebSocketConnection.StatsConnection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo| Constructor and Description |
|---|
WebSocketServerConnection(EndPoint endp,
java.util.concurrent.Executor executor,
Scheduler scheduler,
WebSocketPolicy policy,
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 |
setNextIncomingFrames(IncomingFrames incoming)
Set where the connection should send the incoming frames to.
|
canReadWebSocketFrames, canWriteWebSocketFrames, close, close, close, disconnect, dump, dumpSelf, fillInterested, getBufferPool, getBytesIn, getBytesOut, getExecutor, getExtensions, getGenerator, getId, getIdleTimeout, getMaxIdleTimeout, getMessagesIn, getMessagesOut, getParser, getPolicy, getScheduler, getStats, isOpen, isReading, onFillable, onFillInterestedFailed, onIdleExpired, onReadTimeout, onUpgradeTo, opened, opening, outgoingFrame, remoteClose, resume, setExtensions, setInitialBuffer, setInputBufferSize, setMaxIdleTimeout, setSession, suspend, toConnectionString, toStateStringaddListener, failedCallback, getCreatedTimeStamp, getEndPoint, getInputBufferSize, isFillInterested, onClose, onOpen, removeListener, toString, tryFillInterested, tryFillInterestedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonUpgradeTodump, dump, dumpObject, dumpObjectspublic WebSocketServerConnection(EndPoint endp, java.util.concurrent.Executor executor, Scheduler scheduler, WebSocketPolicy policy, 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.
getLocalAddress in interface LogicalConnectionpublic 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 setNextIncomingFrames(IncomingFrames incoming)
LogicalConnectionOften this is from the Parser to the start of the extension stack, and eventually on to the session.
setNextIncomingFrames in interface LogicalConnectionincoming - the incoming frames handlerCopyright © 1995–2023 Webtide. All rights reserved.