public class WsFrameServer extends WsFrameBase
WsFrameBase.ReadState
inputBuffer, wsSession
Constructor and Description |
---|
WsFrameServer(SocketWrapperBase<?> socketWrapper,
UpgradeInfo upgradeInfo,
WsSession wsSession,
Transformation transformation,
ClassLoader applicationClassLoader) |
Modifier and Type | Method and Description |
---|---|
protected Log |
getLog() |
protected Transformation |
getTransformation() |
protected boolean |
isMasked() |
protected boolean |
isOpen() |
protected void |
resumeProcessing()
This method will be invoked when the read operation is resumed.
|
protected void |
sendMessageBinary(ByteBuffer msg,
boolean last) |
protected void |
sendMessageText(boolean last) |
protected void |
updateStats(long payloadLength)
Hook for updating server side statistics.
|
byteArrayToLong, changeReadState, changeReadState, getReadState, isSuspended, processInputBuffer, resume, suspend
public WsFrameServer(SocketWrapperBase<?> socketWrapper, UpgradeInfo upgradeInfo, WsSession wsSession, Transformation transformation, ClassLoader applicationClassLoader)
protected void updateStats(long payloadLength)
WsFrameBase
updateStats
in class WsFrameBase
payloadLength
- Size of message payloadprotected boolean isMasked()
isMasked
in class WsFrameBase
protected Transformation getTransformation()
getTransformation
in class WsFrameBase
protected boolean isOpen()
isOpen
in class WsFrameBase
protected Log getLog()
getLog
in class WsFrameBase
protected void sendMessageText(boolean last) throws WsIOException
sendMessageText
in class WsFrameBase
WsIOException
protected void sendMessageBinary(ByteBuffer msg, boolean last) throws WsIOException
sendMessageBinary
in class WsFrameBase
WsIOException
protected void resumeProcessing()
WsFrameBase
resumeProcessing
in class WsFrameBase
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.