public final class WebsocketHandshakeTransformArgs extends Object
| Constructor and Description |
|---|
WebsocketHandshakeTransformArgs(MqttClientConnection mqttConnection,
HttpRequest httpRequest,
CompletableFuture<HttpRequest> future) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(HttpRequest signedRequest)
Mark the transform operation as successfully completed.
|
void |
completeExceptionally(Throwable ex)
Mark the transform operation as unsuccessfully completed.
|
HttpRequest |
getHttpRequest()
Get the http request that will be used to perform the websocket handshake.
|
MqttClientConnection |
getMqttClientConnection()
Queries the mqtt client connection.
|
public WebsocketHandshakeTransformArgs(MqttClientConnection mqttConnection, HttpRequest httpRequest, CompletableFuture<HttpRequest> future)
mqttConnection - mqtt client connection that is establishing a websocket connectionhttpRequest - http request that may be modified by the transform operationfuture - Future to complete when the transform is complete.public MqttClientConnection getMqttClientConnection()
public HttpRequest getHttpRequest()
public void complete(HttpRequest signedRequest)
signedRequest - completed requestpublic void completeExceptionally(Throwable ex)
ex - the exceptionCopyright © 2021. All rights reserved.