- java.lang.Object
-
- io.netty5.handler.ssl.SslCompletionEvent
-
- io.netty5.handler.ssl.SniCompletionEvent
-
- All Implemented Interfaces:
ProtocolEvent
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(String hostname)
Creates a new event that indicates a successful processing of the SNI extension.SniCompletionEvent(String hostname, Throwable cause)
Creates a new event that indicates a failed processing of the SNI extension.SniCompletionEvent(Throwable cause)
Creates a new event that indicates a failed processing of the SNI extension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
hostname()
Returns the SNI hostname send by the client if we were able to parse it,null
otherwise.String
toString()
-
Methods inherited from class io.netty5.handler.ssl.SslCompletionEvent
cause, session
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty5.handler.codec.ProtocolEvent
isFailed, isSuccess
-
-
-
-
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.
-
toString
public String toString()
- Overrides:
toString
in classSslCompletionEvent
-
-