It is responsible of the definition and negotiation logic of a WebSocket Extension. It interacts at the handshake phase.
It creates new instances of ExtensionFunction .
| Modifier and Type | Method and Description |
|---|---|
| public WebSocketExtension | Returns: a newWebSocketExtension instance with parameters accepted;
null in case extension request is not acceptedthe extension request representation extension)Validate if an extension request is accepted. |
| public ExtensionFunction | Returns: a new instanceExtensionFunctionCreate a new instance of the |
| public String | |
| public boolean | Returns: true if current extension is compatible;
false if current extension is not compatiblea list of negotiated extensions extensions)Validate if current extension is compatible with previously negotiated in the server side. |
| accept | back to summary |
|---|---|
| public WebSocketExtension accept(final WebSocketExtension extension) Validate if an extension request is accepted.
| |
| create | back to summary |
|---|---|
| public ExtensionFunction create() Create a new instance of the
| |
| getName | back to summary |
|---|---|
public String getName()
| |
| isIncompatible | back to summary |
|---|---|
| public boolean isIncompatible(final List<ExtensionHandshake> extensions) Validate if current extension is compatible with previously negotiated in the server side.
| |