public interface ExtensionHandshake 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 |
|---|---|
WebSocketExtension | accept(WebSocketExtension extension) Validate if an extension request is accepted. |
ExtensionFunction | create() Create a new instance of the ExtensionFunction associated to this WebSocket Extension. |
String | getName() |
boolean | isIncompatible(List<ExtensionHandshake> extensions) Validate if current extension is compatible with previously negotiated in the server side. |
String getName()
WebSocketExtension accept(WebSocketExtension extension)
extension - the extension request representationWebSocketExtension instance with parameters accepted; null in case extension request is not acceptedboolean isIncompatible(List<ExtensionHandshake> extensions)
extensions - a list of negotiated extensionstrue if current extension is compatible; false if current extension is not compatibleExtensionFunction create()
ExtensionFunction associated to this WebSocket Extension.ExtensionFunctionCopyright © 2020 JBoss by Red Hat. All rights reserved.