public class WebSocketServerConnection extends AbstractWebSocketConnection
AbstractWebSocketConnection.OnCloseLocalCallback, AbstractWebSocketConnection.OnDisconnectCallback, AbstractWebSocketConnection.StatsAbstractConnection.FillingInterestedCallback, AbstractConnection.NestedState, AbstractConnection.StateConnection.ListenerEXECUTE_ONFILLABLE, FILL_INTERESTED, FILLING, FILLING_FILL_INTERESTED, IDLE, REFILLING| 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 |
onOpen()
Callback method invoked when this
Connection is opened. |
void |
setNextIncomingFrames(IncomingFrames incoming)
Set where the connection should send the incoming frames to.
|
close, close, disconnect, dump, dump, execute, fillInterested, getBufferPool, getExecutor, getExtensions, getGenerator, getIdleTimeout, getIOState, getMaxIdleTimeout, getParser, getPolicy, getScheduler, getSession, getStats, isOpen, isReading, onClose, onConnectionStateChange, onFillable, onFillInterestedFailed, onReadTimeout, outgoingFrame, resume, setExtensions, setInputBufferSize, setMaxIdleTimeout, setSession, suspend, toStringaddListener, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getInputBufferSize, getMessagesIn, getMessagesOut, nextpublic WebSocketServerConnection(EndPoint endp, Executor executor, Scheduler scheduler, WebSocketPolicy policy, ByteBufferPool bufferPool)
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 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 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 Webtide. All Rights Reserved.