public class WsFrameServer extends WsFrameBase
inputBuffer, writePos, wsSession
Constructor and Description |
---|
WsFrameServer(SocketWrapperBase<?> socketWrapper,
WsSession wsSession,
Transformation transformation,
ClassLoader applicationClassLoader) |
Modifier and Type | Method and Description |
---|---|
protected Log |
getLog() |
protected Transformation |
getTransformation() |
protected boolean |
isMasked() |
protected boolean |
isOpen() |
void |
onDataAvailable()
Called when there is data in the ServletInputStream to process.
|
protected void |
sendMessageBinary(ByteBuffer msg,
boolean last) |
protected void |
sendMessageText(boolean last) |
byteArrayToLong, processInputBuffer
public WsFrameServer(SocketWrapperBase<?> socketWrapper, WsSession wsSession, Transformation transformation, ClassLoader applicationClassLoader)
public void onDataAvailable() throws IOException
IOException
- if an I/O error occurs while processing the available
dataprotected 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
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.