Top Description Fields Constructors Methods
io.netty5.handler.codec.http.websocketx

public abstract Class WebSocketHandshakeCompletionEvent

extends Object
implements ProtocolEvent
Class Inheritance
All Implemented Interfaces
io.netty5.handler.codec.ProtocolEvent
Known Direct Subclasses
io.netty5.handler.codec.http.websocketx.WebSocketServerHandshakeCompletionEvent, io.netty5.handler.codec.http.websocketx.WebSocketClientHandshakeCompletionEvent
Imports
io.netty5.handler.codec.ProtocolEvent

ProtocolEvent that indicate the completion of a websocket handshake.

Field Summary

Modifier and TypeField and Description
private final Throwable
private final WebSocketVersion

Constructor Summary

AccessConstructor and Description
pack-priv
WebSocketHandshakeCompletionEvent(WebSocketVersion
the WebSocketVersion that was used.
version
)

Create a new event that indicate a successful websocket handshake.

pack-priv
WebSocketHandshakeCompletionEvent(Throwable
the cause of the failure
cause
)

Create a new event that indicate a failed websocket handshake.

Method Summary

Modifier and TypeMethod and Description
public final Throwable
cause()

Implements io.netty5.handler.codec.ProtocolEvent.cause.

Returns the cause of the failure, or null if isSuccess().
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public final WebSocketVersion

Returns:

the version.
version
()

Return the WebSocketVersion of the handshake or null in case of a failure.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

causeback to summary
private final Throwable cause
versionback to summary
private final WebSocketVersion version

Constructor Detail

WebSocketHandshakeCompletionEventback to summary
pack-priv WebSocketHandshakeCompletionEvent(WebSocketVersion version)

Create a new event that indicate a successful websocket handshake.

Parameters
version:WebSocketVersion

the WebSocketVersion that was used.

WebSocketHandshakeCompletionEventback to summary
pack-priv WebSocketHandshakeCompletionEvent(Throwable cause)

Create a new event that indicate a failed websocket handshake.

Parameters
cause:Throwable

the cause of the failure

Method Detail

causeback to summary
public final Throwable cause()

Implements io.netty5.handler.codec.ProtocolEvent.cause.

Doc from io.netty5.handler.codec.ProtocolEvent.cause.

Returns the cause of the failure, or null if isSuccess().

Returns:Throwable

the Throwable if isFailed() or null if isSuccess().

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
versionback to summary
public final WebSocketVersion version()

Return the WebSocketVersion of the handshake or null in case of a failure.

Returns:WebSocketVersion

the version.