Class SniCompletionEvent

java.lang.Object
io.netty.handler.ssl.SslCompletionEvent
io.netty.handler.ssl.SniCompletionEvent

public final class SniCompletionEvent extends SslCompletionEvent
Event that is fired once we did a selection of a SslContext based on the SNI hostname, which may be because it was successful or there was an error.
  • Field Details

    • hostname

      private final String hostname
  • Constructor Details

    • SniCompletionEvent

      public SniCompletionEvent(String hostname)
    • SniCompletionEvent

      public SniCompletionEvent(String hostname, Throwable cause)
    • SniCompletionEvent

      public SniCompletionEvent(Throwable cause)
  • Method Details

    • hostname

      public String hostname()
      Returns the SNI hostname send by the client if we were able to parse it, null otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class SslCompletionEvent