Module io.netty5.codec.http
Class WebSocketHandshakeCompletionEvent
- java.lang.Object
-
- io.netty5.handler.codec.http.websocketx.WebSocketHandshakeCompletionEvent
-
- All Implemented Interfaces:
ProtocolEvent
- Direct Known Subclasses:
WebSocketClientHandshakeCompletionEvent
,WebSocketServerHandshakeCompletionEvent
public abstract class WebSocketHandshakeCompletionEvent extends Object implements ProtocolEvent
ProtocolEvent
that indicate the completion of a websocket handshake.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
cause()
Returns the cause of the failure, ornull
ifProtocolEvent.isSuccess()
.String
toString()
WebSocketVersion
version()
Return theWebSocketVersion
of the handshake ornull
in case of a failure.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty5.handler.codec.ProtocolEvent
isFailed, isSuccess
-
-
-
-
Method Detail
-
cause
public final Throwable cause()
Description copied from interface:ProtocolEvent
Returns the cause of the failure, ornull
ifProtocolEvent.isSuccess()
.- Specified by:
cause
in interfaceProtocolEvent
- Returns:
- the
Throwable
ifProtocolEvent.isFailed()
ornull
ifProtocolEvent.isSuccess()
.
-
version
public final WebSocketVersion version()
Return theWebSocketVersion
of the handshake ornull
in case of a failure.- Returns:
- the version.
-
-