Package io.netty.handler.ssl
Class SslContextOption<T>
- Type Parameters:
T
- the type of the value which is valid for theSslContextOption
- All Implemented Interfaces:
Constant<SslContextOption<T>>
,Comparable<SslContextOption<T>>
- Direct Known Subclasses:
OpenSslContextOption
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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SslContextOption
(int id, String name) Creates a newSslContextOption
with the specified uniquename
.protected
SslContextOption
(String name) Should be used by sub-classes. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
void
Validate the value which is set for theSslContextOption
.static <T> SslContextOption
<T> static <T> SslContextOption
<T> Returns theSslContextOption
of the specified name.
-
Field Details
-
pool
-
-
Constructor Details
-
SslContextOption
Creates a newSslContextOption
with the specified uniquename
. -
SslContextOption
Should be used by sub-classes.- Parameters:
name
- the name of the option
-
-
Method Details
-
valueOf
Returns theSslContextOption
of the specified name. -
valueOf
public static <T> SslContextOption<T> valueOf(Class<?> firstNameComponent, String secondNameComponent) -
exists
-
validate
Validate the value which is set for theSslContextOption
. Sub-classes may override this for special checks.
-