| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private final boolean | |
| private final int | |
| private final Deflater | |
| private volatile boolean | |
| private final byte[] | |
| private static final byte[] | |
| private volatile boolean | |
| private final Inflater | |
| private final boolean | |
| public static final String | |
| private volatile Transformation | |
| private final ByteBuffer | |
| private static final int | |
| private static final String | |
| private static final String | |
| private final boolean | |
| private final int | |
| private volatile boolean | |
| private static final StringManager | |
| private volatile ByteBuffer |
| Access | Constructor and Description |
|---|---|
| private | PerMessageDeflate(boolean serverContextTakeover, int serverMaxWindowBits, boolean clientContextTakeover, int clientMaxWindowBits, boolean isServer)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements org. Clean-up any resources that were used by the transformation. |
| public Extension | getExtensionResponse()
Implements org. Obtain the extension that describes the information to be returned to the client. |
| public TransformationResult | getMoreData(byte
The 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)Implements org. Obtain more input data. |
| private int | |
| pack-priv static PerMessageDeflate | |
| public List | sendMessagePart(List<MessagePart>
The list of messages to be transformed uncompressedParts)Implements org. 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 | setNext(Transformation
The next transformation t)Implements org. Sets the next transformation in the pipeline. |
| private void | |
| public boolean | validateRsv(int
The 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)Implements org. Validates the RSV and opcode combination (assumed to have been extracted from a WebSocket Frame) for this extension. |
| public boolean | validateRsvBits(int
The 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)Implements org. Validate that the RSV bit(s) required by this transformation are not being used by another extension. |
| CLIENT_MAX_WINDOW_BITS | back to summary |
|---|---|
| private static final String CLIENT_MAX_WINDOW_BITS | |
| CLIENT_NO_CONTEXT_TAKEOVER | back to summary |
|---|---|
| private static final String CLIENT_NO_CONTEXT_TAKEOVER | |
| clientContextTakeover | back to summary |
|---|---|
| private final boolean clientContextTakeover | |
| clientMaxWindowBits | back to summary |
|---|---|
| private final int clientMaxWindowBits | |
| deflater | back to summary |
|---|---|
| private final Deflater deflater | |
| emptyMessage | back to summary |
|---|---|
| private volatile boolean emptyMessage | |
| EOM_BUFFER | back to summary |
|---|---|
| private final byte[] EOM_BUFFER | |
| EOM_BYTES | back to summary |
|---|---|
| private static final byte[] EOM_BYTES | |
| firstCompressedFrameWritten | back to summary |
|---|---|
| private volatile boolean firstCompressedFrameWritten | |
| inflater | back to summary |
|---|---|
| private final Inflater inflater | |
| isServer | back to summary |
|---|---|
| private final boolean isServer | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| next | back to summary |
|---|---|
| private volatile Transformation next | |
| readBuffer | back to summary |
|---|---|
| private final ByteBuffer readBuffer | |
| RSV_BITMASK | back to summary |
|---|---|
| private static final int RSV_BITMASK | |
| SERVER_MAX_WINDOW_BITS | back to summary |
|---|---|
| private static final String SERVER_MAX_WINDOW_BITS | |
| SERVER_NO_CONTEXT_TAKEOVER | back to summary |
|---|---|
| private static final String SERVER_NO_CONTEXT_TAKEOVER | |
| serverContextTakeover | back to summary |
|---|---|
| private final boolean serverContextTakeover | |
| serverMaxWindowBits | back to summary |
|---|---|
| private final int serverMaxWindowBits | |
| skipDecompression | back to summary |
|---|---|
| private volatile boolean skipDecompression | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| writeBuffer | back to summary |
|---|---|
| private volatile ByteBuffer writeBuffer | |
| PerMessageDeflate | back to summary |
|---|---|
| private PerMessageDeflate(boolean serverContextTakeover, int serverMaxWindowBits, boolean clientContextTakeover, int clientMaxWindowBits, boolean isServer) | |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Clean-up any resources that were used by the transformation.
| |
| getExtensionResponse | back to summary |
|---|---|
| public Extension getExtensionResponse() Implements org. Doc from org. 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 Implements org. Doc from org. Obtain more input data.
| |
| getRsv | back to summary |
|---|---|
| private int getRsv(MessagePart uncompressedMessagePart) | |
| negotiate | back to summary |
|---|---|
| pack-priv static PerMessageDeflate negotiate(List<List<Extension. | |
| sendMessagePart | back to summary |
|---|---|
| public List Implements org. Doc from org. 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) Implements org. Doc from org. Sets the next transformation in the pipeline.
| |
| startNewMessage | back to summary |
|---|---|
| private void startNewMessage() throws IOException | |
| validateRsv | back to summary |
|---|---|
| public boolean validateRsv(int rsv, byte opCode) Implements org. Doc from org. 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) Implements org. Doc from org. 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.
| |