public class WebSocketServerConnection extends AbstractWebSocketConnection
AbstractWebSocketConnection.OnDisconnectCallback, AbstractWebSocketConnection.Stats
AbstractConnection.FillingInterestedCallback, AbstractConnection.NestedState, AbstractConnection.State
Connection.Listener
EXECUTE_ONFILLABLE, FILL_INTERESTED, FILLING, FILLING_FILL_INTERESTED, IDLE, REFILLING
Constructor and Description |
---|
WebSocketServerConnection(EndPoint endp,
Executor executor,
Scheduler scheduler,
WebSocketPolicy policy,
ByteBufferPool bufferPool,
WebSocketServerFactory factory) |
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 |
setNextIncomingFrames(IncomingFrames incoming)
Set where the connection should send the incoming frames to.
|
close, close, complete, disconnect, execute, fillInterested, flush, getBufferPool, getExecutor, getExtensions, getGenerator, getIdleTimeout, getIOState, getMaxIdleTimeout, getParser, getPolicy, getScheduler, getSession, getStats, isOpen, isReading, onConnectionStateChange, onFillable, onFillInterestedFailed, onReadTimeout, outgoingFrame, resume, setExtensions, setInputBufferSize, setMaxIdleTimeout, setSession, suspend, toString
addListener, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getInputBufferSize, getMessagesIn, getMessagesOut, next
public WebSocketServerConnection(EndPoint endp, Executor executor, Scheduler scheduler, WebSocketPolicy policy, ByteBufferPool bufferPool, WebSocketServerFactory factory)
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.
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 onClose()
AbstractWebSocketConnection
Not related to WebSocket close handshake.
onClose
in interface Connection
onClose
in class AbstractWebSocketConnection
public void onOpen()
Connection
Callback method invoked when this Connection
is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen
in interface Connection
onOpen
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.
incoming
- the incoming frames handlerCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.