Class WsFrameServer
- java.lang.Object
- 
- org.apache.tomcat.websocket.WsFrameBase
- 
- org.apache.tomcat.websocket.server.WsFrameServer
 
 
- 
 public class WsFrameServer extends WsFrameBase 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.tomcat.websocket.WsFrameBaseWsFrameBase.ReadState
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.tomcat.websocket.WsFrameBaseinputBuffer, wsSession
 
- 
 - 
Constructor SummaryConstructors Constructor Description WsFrameServer(SocketWrapperBase<?> socketWrapper, UpgradeInfo upgradeInfo, WsSession wsSession, Transformation transformation, java.lang.ClassLoader applicationClassLoader)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LoggetLog()protected TransformationgetTransformation()protected booleanisMasked()protected booleanisOpen()protected voidresumeProcessing()This method will be invoked when the read operation is resumed.protected voidsendMessageBinary(java.nio.ByteBuffer msg, boolean last)protected voidsendMessageText(boolean last)protected voidupdateStats(long payloadLength)Hook for updating server side statistics.- 
Methods inherited from class org.apache.tomcat.websocket.WsFrameBasebyteArrayToLong, changeReadState, changeReadState, getReadState, isSuspended, processInputBuffer, resume, suspend
 
- 
 
- 
- 
- 
Constructor Detail- 
WsFrameServerpublic WsFrameServer(SocketWrapperBase<?> socketWrapper, UpgradeInfo upgradeInfo, WsSession wsSession, Transformation transformation, java.lang.ClassLoader applicationClassLoader) 
 
- 
 - 
Method Detail- 
updateStatsprotected void updateStats(long payloadLength) Description copied from class:WsFrameBaseHook for updating server side statistics. Called on every frame received.- Overrides:
- updateStatsin class- WsFrameBase
- Parameters:
- payloadLength- Size of message payload
 
 - 
isMaskedprotected boolean isMasked() - Specified by:
- isMaskedin class- WsFrameBase
 
 - 
getTransformationprotected Transformation getTransformation() - Overrides:
- getTransformationin class- WsFrameBase
 
 - 
isOpenprotected boolean isOpen() - Overrides:
- isOpenin class- WsFrameBase
 
 - 
getLogprotected Log getLog() - Specified by:
- getLogin class- WsFrameBase
 
 - 
sendMessageTextprotected void sendMessageText(boolean last) throws WsIOException- Overrides:
- sendMessageTextin class- WsFrameBase
- Throws:
- WsIOException
 
 - 
sendMessageBinaryprotected void sendMessageBinary(java.nio.ByteBuffer msg, boolean last) throws WsIOException- Overrides:
- sendMessageBinaryin class- WsFrameBase
- Throws:
- WsIOException
 
 - 
resumeProcessingprotected void resumeProcessing() Description copied from class:WsFrameBaseThis method will be invoked when the read operation is resumed. As the 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 class- WsFrameBase
 
 
- 
 
-