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

public final Class SniCompletionEvent

extends SslCompletionEvent
Class Inheritance
Annotations
@UnstableApi
Imports
io.netty.util.internal.UnstableApi

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
public
public

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.netty.handler.ssl.SslCompletionEvent.toString.

Returns a string representation of the object.
Inherited from io.netty.handler.ssl.SslCompletionEvent:
causeisSuccess

Field Detail

hostnameback to summary
private final String hostname

Constructor Detail

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

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.netty.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