This is a fallback and will always be available for a Draft_6455
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | acceptProvidedExtensionAsClient(String inputExtension)
Implements org. 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 | acceptProvidedExtensionAsServer(String inputExtension)
Implements org. 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 | copyInstance()
Implements org. Extensions must only be by one websocket at all. |
| public void | decodeFrame(Framedata inputFrame)
Implements org. Decode a frame with a extension specific algorithm. |
| public void | encodeFrame(Framedata inputFrame)
Implements org. Encode a frame with a extension specific algorithm. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | getProvidedExtensionAsClient()
Implements org. Return the specific Sec-WebSocket-Extensions header offer for this extension if the endpoint is in the role of a client. |
| public String | getProvidedExtensionAsServer()
Implements org. Return the specific Sec-WebSocket-Extensions header offer for this extension if the endpoint is in the role of a server. |
| public int | |
| public void | isFrameValid(Framedata inputFrame)
Implements org. Check if the received frame is correctly implemented by the other endpoint and there are no specification errors (like wrongly set RSV) |
| public void | reset()
Implements org. Cleaning up internal stats when the draft gets reset. |
| public String | toString()
Overrides java. Implements org. Return a string which should contain the class name as well as additional information about the current configurations for this extension (DEBUG purposes) |
| DefaultExtension | back to summary |
|---|---|
| public DefaultExtension() | |
| acceptProvidedExtensionAsClient | back to summary |
|---|---|
| public boolean acceptProvidedExtensionAsClient(String inputExtension) Implements org. Doc from org. 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 inputExtension) Implements org. Doc from org. 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() Implements org. Doc from org. 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 Implements org. Doc from org. 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) Implements org. Doc from org. 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.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getProvidedExtensionAsClient | back to summary |
|---|---|
| public String getProvidedExtensionAsClient() Implements org. Doc from org. 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() Implements org. Doc from org. 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.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isFrameValid | back to summary |
|---|---|
| public void isFrameValid(Framedata inputFrame) throws InvalidDataException Implements org. Doc from org. 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() Implements org. Doc from org. Cleaning up internal stats when the draft gets reset. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements org. Doc from org. Return a string which should contain the class name as well as additional information about the current configurations for this extension (DEBUG purposes)
| |