Top Description Fields Constructors Methods
io.netty5.handler.ssl

public final Class SniCompletionEvent

extends SslCompletionEvent
Class Inheritance

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

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
SniCompletionEvent(String
the hostname that was used for SNI.
hostname
)

Creates a new event that indicates a successful processing of the SNI extension.

public
SniCompletionEvent(String
the hostname that was used for SNI.
hostname
,
Throwable
the cause of the failure.
cause
)

Creates a new event that indicates a failed processing of the SNI extension.

public
SniCompletionEvent(Throwable
the cause of the failure.
cause
)

Creates a new event that indicates a failed processing of the SNI extension.

Method Summary

Modifier and TypeMethod and Description
public String
hostname()

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

public String
toString()

Overrides io.netty5.handler.ssl.SslCompletionEvent.toString.

Returns a string representation of the object.
Inherited from io.netty5.handler.ssl.SslCompletionEvent:
causesession

Field Detail

hostnameback to summary
private final String hostname

Constructor Detail

SniCompletionEventback to summary
public SniCompletionEvent(String hostname)

Creates a new event that indicates a successful processing of the SNI extension.

Parameters
hostname:String

the hostname that was used for SNI.

SniCompletionEventback to summary
public SniCompletionEvent(String hostname, Throwable cause)

Creates a new event that indicates a failed processing of the SNI extension.

Parameters
hostname:String

the hostname that was used for SNI.

cause:Throwable

the cause of the failure.

SniCompletionEventback to summary
public SniCompletionEvent(Throwable cause)

Creates a new event that indicates a failed processing of the SNI extension.

Parameters
cause:Throwable

the cause of the failure.

Method Detail

hostnameback to summary
public String hostname()

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

toStringback to summary
public String toString()

Overrides io.netty5.handler.ssl.SslCompletionEvent.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override