Home / Class/ SniCompletionEvent Class — netty Architecture

SniCompletionEvent Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  441f88b1_0d70_2fb5_1195_0259e067d9a4["SniCompletionEvent"]
  9aa35c9b_d445_be6f_18a8_ae6038060693["SniCompletionEvent.java"]
  441f88b1_0d70_2fb5_1195_0259e067d9a4 -->|defined in| 9aa35c9b_d445_be6f_18a8_ae6038060693
  04905657_2066_220f_f2e7_d39576b8acfe["SniCompletionEvent()"]
  441f88b1_0d70_2fb5_1195_0259e067d9a4 -->|method| 04905657_2066_220f_f2e7_d39576b8acfe
  d3b570f4_ffd8_048a_cd4b_e3398d1911f5["String()"]
  441f88b1_0d70_2fb5_1195_0259e067d9a4 -->|method| d3b570f4_ffd8_048a_cd4b_e3398d1911f5

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/SniCompletionEvent.java lines 22–51

public final class SniCompletionEvent extends SslCompletionEvent {
    private final String hostname;

    public SniCompletionEvent(String hostname) {
        this.hostname = hostname;
    }

    public SniCompletionEvent(String hostname, Throwable cause) {
        super(cause);
        this.hostname = hostname;
    }

    public SniCompletionEvent(Throwable cause) {
        this(null, cause);
    }

    /**
     * Returns the SNI hostname send by the client if we were able to parse it, {@code null} otherwise.
     */
    public String hostname() {
        return hostname;
    }

    @Override
    public String toString() {
        final Throwable cause = cause();
        return cause == null ? getClass().getSimpleName() + "(SUCCESS='"  + hostname + "'\")":
                getClass().getSimpleName() +  '(' + cause + ')';
    }
}

Frequently Asked Questions

What is the SniCompletionEvent class?
SniCompletionEvent is a class in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/SniCompletionEvent.java.
Where is SniCompletionEvent defined?
SniCompletionEvent is defined in handler/src/main/java/io/netty/handler/ssl/SniCompletionEvent.java at line 22.

Analyze Your Own Codebase

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

Try Supermodel Free