public class DefaultClientHandshakeFuture extends DefaultWebSocketConnectorFuture implements ClientHandshakeFuture
| Constructor and Description |
|---|
DefaultClientHandshakeFuture() |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyError(Throwable throwable,
HttpCarbonResponse response)
Notify any error occurred during the handshake.
|
void |
notifySuccess(WebSocketConnection webSocketConnection,
HttpCarbonResponse response)
Notify the success of the WebSocket handshake.
|
void |
setClientHandshakeListener(ClientHandshakeListener clientHandshakeListener)
Set the listener for WebSocket handshake.
|
notifyWebSocketIdleTimeout, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, setWebSocketConnectorListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotifyWebSocketIdleTimeout, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, setWebSocketConnectorListenerpublic void setClientHandshakeListener(ClientHandshakeListener clientHandshakeListener)
ClientHandshakeFuturesetClientHandshakeListener in interface ClientHandshakeFutureclientHandshakeListener - Listener for WebSocket handshake.public void notifySuccess(WebSocketConnection webSocketConnection, HttpCarbonResponse response)
ClientHandshakeFuturenotifySuccess in interface ClientHandshakeFuturewebSocketConnection - WebSocketConnection for the successful connection.response - HttpCarbonResponse received from server.public void notifyError(Throwable throwable, HttpCarbonResponse response)
ClientHandshakeFuturenotifyError in interface ClientHandshakeFuturethrowable - error occurred during handshake.response - HttpCarbonResponse received from server or null if error occurred before response is
received.Copyright © 2022 WSO2. All rights reserved.