Class WebSocketServerConnection
- java.lang.Object
-
- org.eclipse.jetty.io.AbstractConnection
-
- org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection
-
- org.eclipse.jetty.websocket.server.WebSocketServerConnection
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Connection,Connection.UpgradeTo,Dumpable,OutgoingFrames,SuspendToken,LogicalConnection
public class WebSocketServerConnection extends AbstractWebSocketConnection implements Connection.UpgradeTo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection
AbstractWebSocketConnection.Stats
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
-
-
Constructor Summary
Constructors Constructor Description WebSocketServerConnection(EndPoint endp, java.util.concurrent.Executor executor, Scheduler scheduler, WebSocketPolicy policy, ByteBufferPool bufferPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.InetSocketAddressgetLocalAddress()Get the localInetSocketAddressin use for this connection.java.net.InetSocketAddressgetRemoteAddress()Get the remote Address in use for this connection.voidsetNextIncomingFrames(IncomingFrames incoming)Set where the connection should send the incoming frames to.-
Methods inherited from class org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection
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, toStateString
-
Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addListener, failedCallback, getCreatedTimeStamp, getEndPoint, getInputBufferSize, isFillInterested, onClose, onOpen, removeListener, toString, tryFillInterested, tryFillInterested
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.io.Connection.UpgradeTo
onUpgradeTo
-
-
-
-
Constructor Detail
-
WebSocketServerConnection
public WebSocketServerConnection(EndPoint endp, java.util.concurrent.Executor executor, Scheduler scheduler, WebSocketPolicy policy, ByteBufferPool bufferPool)
-
-
Method Detail
-
getLocalAddress
public java.net.InetSocketAddress getLocalAddress()
Description copied from interface:LogicalConnectionGet the localInetSocketAddressin 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.
- Specified by:
getLocalAddressin interfaceLogicalConnection- Returns:
- the local address.
-
getRemoteAddress
public java.net.InetSocketAddress getRemoteAddress()
Description copied from interface:LogicalConnectionGet the remote Address 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.
- Specified by:
getRemoteAddressin interfaceLogicalConnection- Overrides:
getRemoteAddressin classAbstractWebSocketConnection- Returns:
- the remote address.
-
setNextIncomingFrames
public void setNextIncomingFrames(IncomingFrames incoming)
Description copied from interface:LogicalConnectionSet where the connection should send the incoming frames to.Often this is from the Parser to the start of the extension stack, and eventually on to the session.
- Specified by:
setNextIncomingFramesin interfaceLogicalConnection- Parameters:
incoming- the incoming frames handler
-
-