Module io.netty5.codec.http
Interface WebSocketClientExtensionHandshaker
-
- All Known Implementing Classes:
DeflateFrameClientExtensionHandshaker
,PerMessageDeflateClientExtensionHandshaker
public interface WebSocketClientExtensionHandshaker
Handshakes a client extension with the server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebSocketClientExtension
handshakeExtension(WebSocketExtensionData extensionData)
Handshake based on server response.WebSocketExtensionData
newRequestData()
Return extension configuration to submit to the server.
-
-
-
Method Detail
-
newRequestData
WebSocketExtensionData newRequestData()
Return extension configuration to submit to the server.- Returns:
- the desired extension configuration.
-
handshakeExtension
WebSocketClientExtension handshakeExtension(WebSocketExtensionData extensionData)
Handshake based on server response. It should always succeed because server response should be a request acknowledge.- Parameters:
extensionData
- the extension configuration sent by the server.- Returns:
- an initialized extension if handshake phase succeed or null if failed.
-
-