Class WsRemoteEndpointImplServer
- java.lang.Object
- 
- org.apache.tomcat.websocket.WsRemoteEndpointImplBase
- 
- org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer
 
 
- 
- All Implemented Interfaces:
- RemoteEndpoint
 
 public class WsRemoteEndpointImplServer extends WsRemoteEndpointImplBase This is the server sideRemoteEndpointimplementation - i.e. what the server uses to send data to the client.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface javax.websocket.RemoteEndpointRemoteEndpoint.Async, RemoteEndpoint.Basic
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.tomcat.websocket.WsRemoteEndpointImplBaseSENDRESULT_OK
 
- 
 - 
Constructor SummaryConstructors Constructor Description WsRemoteEndpointImplServer(SocketWrapperBase<?> socketWrapper, UpgradeInfo upgradeInfo, WsServerContainer serverContainer)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoClose()protected voiddoWrite(SendHandler handler, long blockingWriteTimeoutExpiry, java.nio.ByteBuffer... buffers)protected longgetTimeoutExpiry()protected booleanisMasked()protected voidonTimeout(boolean useDispatch)voidonWritePossible(boolean useDispatch)protected voidsetTransformation(Transformation transformation)protected voidupdateStats(long payloadLength)Hook for updating server side statistics.- 
Methods inherited from class org.apache.tomcat.websocket.WsRemoteEndpointImplBaseclose, flushBatch, getBatchingAllowed, getSendStream, getSendTimeout, getSendWriter, sendBytes, sendBytesByCompletion, sendBytesByFuture, sendObject, sendObjectByCompletion, sendObjectByFuture, sendPartialBytes, sendPartialString, sendPing, sendPong, sendString, sendStringByCompletion, sendStringByFuture, setBatchingAllowed, setEncoders, setSendTimeout, setSession
 
- 
 
- 
- 
- 
Constructor Detail- 
WsRemoteEndpointImplServerpublic WsRemoteEndpointImplServer(SocketWrapperBase<?> socketWrapper, UpgradeInfo upgradeInfo, WsServerContainer serverContainer) 
 
- 
 - 
Method Detail- 
isMaskedprotected final boolean isMasked() - Specified by:
- isMaskedin class- WsRemoteEndpointImplBase
 
 - 
doWriteprotected void doWrite(SendHandler handler, long blockingWriteTimeoutExpiry, java.nio.ByteBuffer... buffers) - Specified by:
- doWritein class- WsRemoteEndpointImplBase
 
 - 
updateStatsprotected void updateStats(long payloadLength) Description copied from class:WsRemoteEndpointImplBaseHook for updating server side statistics. Called on every frame written (including when batching is enabled and the frames are buffered locally until the buffer is full or is flushed).- Overrides:
- updateStatsin class- WsRemoteEndpointImplBase
- Parameters:
- payloadLength- Size of message payload
 
 - 
onWritePossiblepublic void onWritePossible(boolean useDispatch) 
 - 
doCloseprotected void doClose() - Specified by:
- doClosein class- WsRemoteEndpointImplBase
 
 - 
getTimeoutExpiryprotected long getTimeoutExpiry() 
 - 
onTimeoutprotected void onTimeout(boolean useDispatch) 
 - 
setTransformationprotected void setTransformation(Transformation transformation) - Overrides:
- setTransformationin class- WsRemoteEndpointImplBase
 
 
- 
 
-