Home / Class/ WebSocketClientHandshakeException Class — netty Architecture

WebSocketClientHandshakeException Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  3da06e50_8706_4f40_f305_8bad1b4a1801["WebSocketClientHandshakeException"]
  cddb69dd_a5d4_21ef_4243_4e7de7d8f6a6["WebSocketClientHandshakeException.java"]
  3da06e50_8706_4f40_f305_8bad1b4a1801 -->|defined in| cddb69dd_a5d4_21ef_4243_4e7de7d8f6a6
  43864444_3be9_f70a_b6d5_7e36372733ec["WebSocketClientHandshakeException()"]
  3da06e50_8706_4f40_f305_8bad1b4a1801 -->|method| 43864444_3be9_f70a_b6d5_7e36372733ec
  aedfa2ad_76f0_6b5c_a0b9_4f3c8a8c312c["HttpResponse()"]
  3da06e50_8706_4f40_f305_8bad1b4a1801 -->|method| aedfa2ad_76f0_6b5c_a0b9_4f3c8a8c312c

Relationship Graph

Source Code

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

public final class WebSocketClientHandshakeException extends WebSocketHandshakeException {

    private static final long serialVersionUID = 1L;

    private final HttpResponse response;

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

    public WebSocketClientHandshakeException(String message, HttpResponse httpResponse) {
        super(message);
        if (httpResponse != null) {
            response = new DefaultHttpResponse(httpResponse.protocolVersion(),
                                               httpResponse.status(), httpResponse.headers());
        } else {
            response = null;
        }
    }

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

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free