| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Extension | Returns: The extension information that describes the parameters that have been agreed for this transformationObtain the extension that describes the information to be returned to the client. |
| public TransformationResult | Returns: The result of trying to read more data from the transformThe opcode for the frame currently being processed opCode, boolean Is this the final frame in this WebSocket message? fin, int The reserved bits for the frame currently being processed rsv, ByteBuffer The buffer in which the data is to be written dest)Obtain more input data. |
| public List | Returns: The list of messages after this any any subsequent transformations have been applied. The size of the returned list may be bigger or smaller than the size of the input listThe list of messages to be transformed messageParts)Takes the provided list of messages, transforms them, passes the transformed list on to the next transformation (if any) and then returns the resulting list of message parts after all of the transformations have been applied. |
| public void | |
| public boolean | Returns: true if the RSV is valid otherwise falseThe RSV bits received as an int in the range zero to seven with RSV1 as the MSB and RSV3 as the LSB rsv, byte The opCode received opCode)Validates the RSV and opcode combination (assumed to have been extracted from a WebSocket Frame) for this extension. |
| public boolean | Returns: true if the combination of RSV bits used by the transformations in the pipeline do not
conflict otherwise falseThe RSV bits marked as in use so far as an int in the range zero to seven with RSV1 as the MSB and RSV3
as the LSB i)Validate that the RSV bit(s) required by this transformation are not being used by another extension. |
| close | back to summary |
|---|---|
| public void close() Clean-up any resources that were used by the transformation. | |
| getExtensionResponse | back to summary |
|---|---|
| public Extension getExtensionResponse() Obtain the extension that describes the information to be returned to the client.
| |
| getMoreData | back to summary |
|---|---|
| public TransformationResult getMoreData(byte opCode, boolean fin, int rsv, ByteBuffer dest) throws IOException Obtain more input data.
| |
| sendMessagePart | back to summary |
|---|---|
| public List Takes the provided list of messages, transforms them, passes the transformed list on to the next transformation (if any) and then returns the resulting list of message parts after all of the transformations have been applied.
| |
| setNext | back to summary |
|---|---|
| public void setNext(Transformation t) Sets the next transformation in the pipeline.
| |
| validateRsv | back to summary |
|---|---|
| public boolean validateRsv(int rsv, byte opCode) Validates the RSV and opcode combination (assumed to have been extracted from a WebSocket Frame) for this extension. The implementation is expected to unset any RSV bits it has validated before passing the remaining RSV bits to the next transformation in the pipeline.
| |
| validateRsvBits | back to summary |
|---|---|
| public boolean validateRsvBits(int i) Validate that the RSV bit(s) required by this transformation are not being used by another extension. The implementation is expected to set any bits it requires before passing the set of in-use bits to the next transformation.
| |