public abstract class WsFrameBase extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
inputBuffer |
protected int |
writePos |
protected WsSession |
wsSession |
Constructor and Description |
---|
WsFrameBase(WsSession wsSession,
Transformation transformation) |
Modifier and Type | Method and Description |
---|---|
protected static long |
byteArrayToLong(byte[] b,
int start,
int len) |
protected abstract Log |
getLog() |
protected Transformation |
getTransformation() |
protected abstract boolean |
isMasked() |
protected boolean |
isOpen() |
protected void |
processInputBuffer() |
protected void |
sendMessageBinary(ByteBuffer msg,
boolean last) |
protected void |
sendMessageText(boolean last) |
protected final WsSession wsSession
protected final byte[] inputBuffer
protected volatile int writePos
public WsFrameBase(WsSession wsSession, Transformation transformation)
protected void processInputBuffer() throws IOException
IOException
protected abstract boolean isMasked()
protected abstract Log getLog()
protected void sendMessageText(boolean last) throws WsIOException
WsIOException
protected void sendMessageBinary(ByteBuffer msg, boolean last) throws WsIOException
WsIOException
protected static long byteArrayToLong(byte[] b, int start, int len) throws IOException
IOException
protected boolean isOpen()
protected Transformation getTransformation()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.