Class SniCompletionEvent

  • All Implemented Interfaces:
    ProtocolEvent

    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.
    • Constructor Detail

      • SniCompletionEvent

        public SniCompletionEvent​(String hostname)
        Creates a new event that indicates a successful processing of the SNI extension.
        Parameters:
        hostname - the hostname that was used for SNI.
      • SniCompletionEvent

        public SniCompletionEvent​(String hostname,
                                  Throwable cause)
        Creates a new event that indicates a failed processing of the SNI extension.
        Parameters:
        hostname - the hostname that was used for SNI.
        cause - the cause of the failure.
      • SniCompletionEvent

        public SniCompletionEvent​(Throwable cause)
        Creates a new event that indicates a failed processing of the SNI extension.
        Parameters:
        cause - the cause of the failure.
    • Method Detail

      • hostname

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