Home / Class/ WebSocketServerHandshakeException Class — netty Architecture

WebSocketServerHandshakeException Class — netty Architecture

Architecture documentation for the WebSocketServerHandshakeException class in WebSocketServerHandshakeException.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  81eb88aa_b9af_c044_d542_dd6403bb88b5["WebSocketServerHandshakeException"]
  5b3aad7f_270c_9317_4a2f_2780611c9bf3["WebSocketServerHandshakeException.java"]
  81eb88aa_b9af_c044_d542_dd6403bb88b5 -->|defined in| 5b3aad7f_270c_9317_4a2f_2780611c9bf3
  00691b0c_2b8c_c382_3e30_09f8a0cecaa0["WebSocketServerHandshakeException()"]
  81eb88aa_b9af_c044_d542_dd6403bb88b5 -->|method| 00691b0c_2b8c_c382_3e30_09f8a0cecaa0
  0816b99d_78fc_08f2_a863_66a76b200cd7["HttpRequest()"]
  81eb88aa_b9af_c044_d542_dd6403bb88b5 -->|method| 0816b99d_78fc_08f2_a863_66a76b200cd7

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshakeException.java lines 29–55

public final class WebSocketServerHandshakeException extends WebSocketHandshakeException {

    private static final long serialVersionUID = 1L;

    private final HttpRequest request;

    public WebSocketServerHandshakeException(String message) {
        this(message, null);
    }

    public WebSocketServerHandshakeException(String message, HttpRequest httpRequest) {
        super(message);
        if (httpRequest != null) {
            request = new DefaultHttpRequest(httpRequest.protocolVersion(), httpRequest.method(),
                                             httpRequest.uri(), httpRequest.headers());
        } else {
            request = null;
        }
    }

    /**
     * Returns a {@link HttpRequest request} if exception occurs during request validation otherwise {@code null}.
     */
    public HttpRequest request() {
        return request;
    }
}

Frequently Asked Questions

What is the WebSocketServerHandshakeException class?
WebSocketServerHandshakeException is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshakeException.java.
Where is WebSocketServerHandshakeException defined?
WebSocketServerHandshakeException is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshakeException.java at line 29.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free