Package org.apache.tomcat.websocket
Class WsFrameClient
- java.lang.Object
-
- org.apache.tomcat.websocket.WsFrameBase
-
- org.apache.tomcat.websocket.WsFrameClient
-
public class WsFrameClient extends WsFrameBase
WebSocket frame handler for client connections.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.tomcat.websocket.WsFrameBase
WsFrameBase.ReadState
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.websocket.WsFrameBase
inputBuffer, wsSession
-
-
Constructor Summary
Constructors Constructor Description WsFrameClient(java.nio.ByteBuffer response, AsyncChannelWrapper channel, WsSession wsSession, Transformation transformation)Constructs a new WsFrameClient.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LoggetLog()Returns the log instance for this frame.protected booleanisMasked()Returns whether frames from this peer must be masked.protected voidresumeProcessing()This method will be invoked when the read operation is resumed.-
Methods inherited from class org.apache.tomcat.websocket.WsFrameBase
byteArrayToLong, changeReadState, changeReadState, getReadState, getTransformation, isOpen, isSuspended, processInputBuffer, resume, sendMessageBinary, sendMessageText, suspend, updateStats
-
-
-
-
Constructor Detail
-
WsFrameClient
public WsFrameClient(java.nio.ByteBuffer response, AsyncChannelWrapper channel, WsSession wsSession, Transformation transformation)Constructs a new WsFrameClient.- Parameters:
response- The response bufferchannel- The async channel wrapperwsSession- The WebSocket sessiontransformation- The transformation to apply
-
-
Method Detail
-
isMasked
protected boolean isMasked()
Description copied from class:WsFrameBaseReturns whether frames from this peer must be masked.- Specified by:
isMaskedin classWsFrameBase- Returns:
trueif frames must be masked
-
getLog
protected Log getLog()
Description copied from class:WsFrameBaseReturns the log instance for this frame.- Specified by:
getLogin classWsFrameBase- Returns:
- the log instance
-
resumeProcessing
protected void resumeProcessing()
Description copied from class:WsFrameBaseThis method will be invoked when the read operation is resumed. Since suspend of the read operation can be invoked at any time, when implementing this method one should consider that there might still be data remaining into the internal buffers that needs to be processed before reading again from the socket.- Specified by:
resumeProcessingin classWsFrameBase
-
-