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
ProtocolEventthat indicate the completion of a websocket handshake.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwablecause()Returns the cause of the failure, ornullifProtocolEvent.isSuccess().StringtoString()WebSocketVersionversion()Return theWebSocketVersionof the handshake ornullin 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:ProtocolEventReturns the cause of the failure, ornullifProtocolEvent.isSuccess().- Specified by:
causein interfaceProtocolEvent- Returns:
- the
ThrowableifProtocolEvent.isFailed()ornullifProtocolEvent.isSuccess().
-
version
public final WebSocketVersion version()
Return theWebSocketVersionof the handshake ornullin case of a failure.- Returns:
- the version.
-
-