Package io.netty.handler.ssl
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 aSslContext
based on theSNI hostname
, which may be because it was successful or there was an error.
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
hostname()
Returns the SNI hostname send by the client if we were able to parse it,null
otherwise.java.lang.String
toString()
-
Methods inherited from class io.netty.handler.ssl.SslCompletionEvent
cause, isSuccess
-
-
-
-
Method Detail
-
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 classSslCompletionEvent
-
-