Class WebSocketClientConnection
- java.lang.Object
-
- org.eclipse.jetty.io.AbstractConnection
-
- org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection
-
- org.eclipse.jetty.websocket.client.io.WebSocketClientConnection
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Connection
,Connection.UpgradeTo
,Dumpable
,OutgoingFrames
,SuspendToken
,LogicalConnection
public class WebSocketClientConnection extends AbstractWebSocketConnection
Client side WebSocket physical connection.
-
-
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
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
-
Constructor Summary
Constructors Constructor Description WebSocketClientConnection(EndPoint endp, java.util.concurrent.Executor executor, Scheduler scheduler, WebSocketPolicy websocketPolicy, ByteBufferPool bufferPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
outgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode)
Override to set the masker.-
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, getLocalAddress, getMaxIdleTimeout, getMessagesIn, getMessagesOut, getParser, getPolicy, getRemoteAddress, getScheduler, getStats, isOpen, isReading, onFillable, onFillInterestedFailed, onIdleExpired, onReadTimeout, onUpgradeTo, opened, opening, remoteClose, resume, setExtensions, setInitialBuffer, setInputBufferSize, setMaxIdleTimeout, setNextIncomingFrames, 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
-
-
-
-
Constructor Detail
-
WebSocketClientConnection
public WebSocketClientConnection(EndPoint endp, java.util.concurrent.Executor executor, Scheduler scheduler, WebSocketPolicy websocketPolicy, ByteBufferPool bufferPool)
-
-
Method Detail
-
outgoingFrame
public void outgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode)
Override to set the masker.- Specified by:
outgoingFrame
in interfaceOutgoingFrames
- Overrides:
outgoingFrame
in classAbstractWebSocketConnection
- Parameters:
frame
- the frame to eventually write to the network layer.callback
- the callback to notify when the frame is written.batchMode
- the batch mode requested by the sender.
-
-