public interface ExtensionFunction
Modifier and Type | Field and Description |
---|---|
static int | RSV1 Bitmask for RSV1 bit used in extensions. |
static int | RSV2 Bitmask for RSV2 bit used in extensions. |
static int | RSV3 Bitmask for RSV3 bit used in extensions. |
Modifier and Type | Method and Description |
---|---|
void | dispose() Dispose this function. |
boolean | hasExtensionOpCode() Validate if current extension defines a new WebSocket Opcode. |
PooledByteBuffer | transformForRead(PooledByteBuffer pooledBuffer, WebSocketChannel channel, boolean lastFragmentOfFrame) Transform the supplied buffer per this extension. |
PooledByteBuffer | transformForWrite(PooledByteBuffer pooledBuffer, WebSocketChannel channel) Transform the supplied buffer per this extension. |
int | writeRsv(int rsv) Add RSV bits (RSV1, RSV2, RSV3) to the current rsv status. |
static final int RSV1
static final int RSV2
static final int RSV3
boolean hasExtensionOpCode()
true
if current extension defines specific Opcode false
is current extension does not define specific Opcodeint writeRsv(int rsv)
rsv
- current RSV bits statusPooledByteBuffer transformForWrite(PooledByteBuffer pooledBuffer, WebSocketChannel channel) throws IOException
pooledBuffer
- Buffer to transformchannel
- working channelIOException
PooledByteBuffer transformForRead(PooledByteBuffer pooledBuffer, WebSocketChannel channel, boolean lastFragmentOfFrame) throws IOException
pooledBuffer
- Buffer to transformchannel
- working channelIOException
void dispose()
Copyright © 2015 JBoss by Red Hat. All rights reserved.