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

public Class SslContextOption<T>

extends AbstractConstant<SslContextOption<T>>
Class Inheritance
Known Direct Subclasses
io.netty5.handler.ssl.OpenSslContextOption
Type Parameters
<T>
the type of the value which is valid for the SslContextOption
Imports
io.netty5.util.AbstractConstant, .ConstantPool

A SslContextOption allows to configure a SslContext in a type-safe way. Which SslContextOption is supported depends on the actual implementation of SslContext and may depend on the nature of the SSL implementation it belongs to.

Field Summary

Modifier and TypeField and Description
private static final ConstantPool<SslContextOption<Object>>

Constructor Summary

AccessConstructor and Description
private
SslContextOption(int id, String name)

Creates a new SslContextOption with the specified unique name.

protected
SslContextOption(String
the name of the option
name
)

Should be used by sub-classes.

Method Summary

Modifier and TypeMethod and Description
public static boolean
exists(String name)

Returns true if a SslContextOption exists for the given name.

public void
validate(T value)

Validate the value which is set for the SslContextOption.

public static <T> SslContextOption<T>
valueOf(String name)

Returns the SslContextOption of the specified name.

public static <T> SslContextOption<T>
valueOf(Class<?> firstNameComponent, String secondNameComponent)

Shortcut of valueOf(firstNameComponent.getName() + "#" + secondNameComponent).

Inherited from io.netty5.util.AbstractConstant:
compareToequalshashCodeidnametoString

Field Detail

poolback to summary
private static final ConstantPool<SslContextOption<Object>> pool

Constructor Detail

SslContextOptionback to summary
private SslContextOption(int id, String name)

Creates a new SslContextOption with the specified unique name.

SslContextOptionback to summary
protected SslContextOption(String name)

Should be used by sub-classes.

Parameters
name:String

the name of the option

Method Detail

existsback to summary
public static boolean exists(String name)

Returns true if a SslContextOption exists for the given name.

validateback to summary
public void validate(T value)

Validate the value which is set for the SslContextOption. Sub-classes may override this for special checks.

valueOfback to summary
public static <T> SslContextOption<T> valueOf(String name)

Returns the SslContextOption of the specified name.

Annotations
@SuppressWarnings:unchecked
valueOfback to summary
public static <T> SslContextOption<T> valueOf(Class<?> firstNameComponent, String secondNameComponent)

Shortcut of valueOf(firstNameComponent.getName() + "#" + secondNameComponent).

Annotations
@SuppressWarnings:unchecked