public class DefaultServerHandshakeFuture extends Object implements ServerHandshakeFuture
| Constructor and Description |
|---|
DefaultServerHandshakeFuture() |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyError(Throwable throwable)
Notify any error occurred during the handshake.
|
void |
notifySuccess(WebSocketConnection webSocketConnection)
Notify the success of the WebSocket handshake.
|
ServerHandshakeFuture |
setHandshakeListener(ServerHandshakeListener serverHandshakeListener)
Set the listener for WebSocket handshake.
|
public ServerHandshakeFuture setHandshakeListener(ServerHandshakeListener serverHandshakeListener)
ServerHandshakeFuturesetHandshakeListener in interface ServerHandshakeFutureserverHandshakeListener - Listener for WebSocket handshake.public void notifySuccess(WebSocketConnection webSocketConnection)
ServerHandshakeFuturenotifySuccess in interface ServerHandshakeFuturewebSocketConnection - WebSocketConnection for the successful connection.public void notifyError(Throwable throwable)
ServerHandshakeFuturenotifyError in interface ServerHandshakeFuturethrowable - error occurred during handshake.Copyright © 2023 WSO2. All rights reserved.