public class NoopExtensionFunction extends Object implements ExtensionFunction
| Modifier and Type | Field and Description |
|---|---|
static ExtensionFunction | instance |
RSV1, RSV2, RSV3| Constructor and Description |
|---|
NoopExtensionFunction() |
| 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. |
public static final ExtensionFunction instance
public boolean hasExtensionOpCode()
ExtensionFunctionhasExtensionOpCode in interface ExtensionFunctiontrue if current extension defines specific Opcode false is current extension does not define specific Opcodepublic int writeRsv(int rsv)
ExtensionFunctionwriteRsv in interface ExtensionFunctionrsv - current RSV bits statuspublic PooledByteBuffer transformForWrite(PooledByteBuffer pooledBuffer, WebSocketChannel channel) throws IOException
ExtensionFunctiontransformForWrite in interface ExtensionFunctionpooledBuffer - Buffer to transformchannel - working channelIOExceptionpublic PooledByteBuffer transformForRead(PooledByteBuffer pooledBuffer, WebSocketChannel channel, boolean lastFragmentOfFrame) throws IOException
ExtensionFunctiontransformForRead in interface ExtensionFunctionpooledBuffer - Buffer to transformchannel - working channelIOExceptionpublic void dispose()
ExtensionFunctiondispose in interface ExtensionFunctionCopyright © 2015 JBoss by Red Hat. All rights reserved.