T
- the type of the value which is valid for the SslContextOption
public class SslContextOption<T> extends AbstractConstant<SslContextOption<T>>
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.Modifier | Constructor and Description |
---|---|
protected |
SslContextOption(String name)
Should be used by sub-classes.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
exists(String name)
|
void |
validate(T value)
Validate the value which is set for the
SslContextOption . |
static <T> SslContextOption<T> |
valueOf(Class<?> firstNameComponent,
String secondNameComponent)
|
static <T> SslContextOption<T> |
valueOf(String name)
Returns the
SslContextOption of the specified name. |
protected SslContextOption(String name)
name
- the name of the optionpublic static <T> SslContextOption<T> valueOf(String name)
SslContextOption
of the specified name.public static <T> SslContextOption<T> valueOf(Class<?> firstNameComponent, String secondNameComponent)
public static boolean exists(String name)
public void validate(T value)
SslContextOption
. Sub-classes
may override this for special checks.Copyright © 2008–2024 The Netty Project. All rights reserved.