Class WebSocketServerHandshakeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.netty.handler.codec.http.websocketx.WebSocketHandshakeException
-
- io.netty.handler.codec.http.websocketx.WebSocketServerHandshakeException
-
- All Implemented Interfaces:
java.io.Serializable
public final class WebSocketServerHandshakeException extends WebSocketHandshakeException
Server exception during handshaking process.IMPORTANT: This exception does not contain any
ReferenceCounted
fields e.g.FullHttpRequest
, so no special treatment is needed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebSocketServerHandshakeException(java.lang.String message)
WebSocketServerHandshakeException(java.lang.String message, HttpRequest httpRequest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest
request()
Returns arequest
if exception occurs during request validation otherwisenull
.
-
-
-
Constructor Detail
-
WebSocketServerHandshakeException
public WebSocketServerHandshakeException(java.lang.String message)
-
WebSocketServerHandshakeException
public WebSocketServerHandshakeException(java.lang.String message, HttpRequest httpRequest)
-
-
Method Detail
-
request
public HttpRequest request()
Returns arequest
if exception occurs during request validation otherwisenull
.
-
-