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 Summary

    Fields
    Modifier and Type
    Field
    Description
    private final java.lang.String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SniCompletionEvent(java.lang.String hostname)
     
    SniCompletionEvent(java.lang.String hostname, java.lang.Throwable cause)
     
    SniCompletionEvent(java.lang.Throwable cause)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.String
    Returns the SNI hostname send by the client if we were able to parse it, null otherwise.
    java.lang.String
     

    Methods inherited from class SslCompletionEvent

    cause, isSuccess

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • hostname

      private final java.lang.String hostname
  • Constructor Details

    • SniCompletionEvent

      public SniCompletionEvent(java.lang.String hostname)
    • SniCompletionEvent

      public SniCompletionEvent(java.lang.String hostname, java.lang.Throwable cause)
    • SniCompletionEvent

      public SniCompletionEvent(java.lang.Throwable cause)
  • Method Details

    • hostname

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

      public java.lang.String toString()
      Overrides:
      toString in class SslCompletionEvent