| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true, if the offer does fit to this specific extensionthe received Sec-WebSocket-Extensions header field offered by the
other endpoint inputExtensionHeader)Check if the received Sec-WebSocket-Extensions header field contains a offer for the specific extension if the endpoint is in the role of a client |
| public boolean | Returns: true, if the offer does fit to this specific extensionthe received Sec-WebSocket-Extensions header field offered by the
other endpoint inputExtensionHeader)Check if the received Sec-WebSocket-Extensions header field contains a offer for the specific extension if the endpoint is in the role of a server |
| public IExtension | |
| public void | decodeFrame(Framedata
the frame, which has do be decoded to be used in the application inputFrame)Decode a frame with a extension specific algorithm. |
| public void | encodeFrame(Framedata
the frame, which has do be encoded to be used on the other endpoint inputFrame)Encode a frame with a extension specific algorithm. |
| public String | Returns: the specific Sec-WebSocket-Extensions header for this extensionReturn the specific Sec-WebSocket-Extensions header offer for this extension if the endpoint is in the role of a client. |
| public String | Returns: the specific Sec-WebSocket-Extensions header for this extensionReturn the specific Sec-WebSocket-Extensions header offer for this extension if the endpoint is in the role of a server. |
| public void | isFrameValid(Framedata
the received frame inputFrame)Check if the received frame is correctly implemented by the other endpoint and there are no specification errors (like wrongly set RSV) |
| public void | |
| public String | Returns: a string containing the class name as well as additional informationReturn a string which should contain the class name as well as additional information about the current configurations for this extension (DEBUG purposes) |
| acceptProvidedExtensionAsClient | back to summary |
|---|---|
| public boolean acceptProvidedExtensionAsClient(String inputExtensionHeader) Check if the received Sec-WebSocket-Extensions header field contains a offer for the specific extension if the endpoint is in the role of a client
| |
| acceptProvidedExtensionAsServer | back to summary |
|---|---|
| public boolean acceptProvidedExtensionAsServer(String inputExtensionHeader) Check if the received Sec-WebSocket-Extensions header field contains a offer for the specific extension if the endpoint is in the role of a server
| |
| copyInstance | back to summary |
|---|---|
| public IExtension copyInstance() Extensions must only be by one websocket at all. To prevent extensions to be used more than
once the Websocket implementation should call this method in order to create a new usable
version of a given extension instance.
| |
| decodeFrame | back to summary |
|---|---|
| public void decodeFrame(Framedata inputFrame) throws InvalidDataException Decode a frame with a extension specific algorithm. The algorithm is subject to be implemented by the specific extension. The resulting frame will be used in the application
| |
| encodeFrame | back to summary |
|---|---|
| public void encodeFrame(Framedata inputFrame) Encode a frame with a extension specific algorithm. The algorithm is subject to be implemented by the specific extension. The resulting frame will be send to the other endpoint.
| |
| getProvidedExtensionAsClient | back to summary |
|---|---|
| public String getProvidedExtensionAsClient() Return the specific Sec-WebSocket-Extensions header offer for this extension if the endpoint is in the role of a client. If the extension returns an empty string (""), the offer will not be included in the handshake.
| |
| getProvidedExtensionAsServer | back to summary |
|---|---|
| public String getProvidedExtensionAsServer() Return the specific Sec-WebSocket-Extensions header offer for this extension if the endpoint is in the role of a server. If the extension returns an empty string (""), the offer will not be included in the handshake.
| |
| isFrameValid | back to summary |
|---|---|
| public void isFrameValid(Framedata inputFrame) throws InvalidDataException Check if the received frame is correctly implemented by the other endpoint and there are no specification errors (like wrongly set RSV)
| |
| reset | back to summary |
|---|---|
| public void reset() Cleaning up internal stats when the draft gets reset.
| |
| toString | back to summary |
|---|---|
| public String toString() Return a string which should contain the class name as well as additional information about the current configurations for this extension (DEBUG purposes)
| |