Package io.netty.handler.ssl
Class SslContextOption<T>
- java.lang.Object
-
- io.netty.util.AbstractConstant<SslContextOption<T>>
-
- io.netty.handler.ssl.SslContextOption<T>
-
- Type Parameters:
T- the type of the value which is valid for theSslContextOption
- All Implemented Interfaces:
Constant<SslContextOption<T>>,java.lang.Comparable<SslContextOption<T>>
- Direct Known Subclasses:
OpenSslContextOption
public class SslContextOption<T> extends AbstractConstant<SslContextOption<T>>
ASslContextOptionallows to configure aSslContextin a type-safe way. WhichSslContextOptionis supported depends on the actual implementation ofSslContextand may depend on the nature of the SSL implementation it belongs to.
-
-
Field Summary
Fields Modifier and Type Field Description private static ConstantPool<SslContextOption<java.lang.Object>>pool
-
Constructor Summary
Constructors Modifier Constructor Description privateSslContextOption(int id, java.lang.String name)Creates a newSslContextOptionwith the specified uniquename.protectedSslContextOption(java.lang.String name)Should be used by sub-classes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanexists(java.lang.String name)voidvalidate(T value)Validate the value which is set for theSslContextOption.static <T> SslContextOption<T>valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent)static <T> SslContextOption<T>valueOf(java.lang.String name)Returns theSslContextOptionof the specified name.
-
-
-
Field Detail
-
pool
private static final ConstantPool<SslContextOption<java.lang.Object>> pool
-
-
Constructor Detail
-
SslContextOption
private SslContextOption(int id, java.lang.String name)Creates a newSslContextOptionwith the specified uniquename.
-
SslContextOption
protected SslContextOption(java.lang.String name)
Should be used by sub-classes.- Parameters:
name- the name of the option
-
-
Method Detail
-
valueOf
public static <T> SslContextOption<T> valueOf(java.lang.String name)
Returns theSslContextOptionof the specified name.
-
valueOf
public static <T> SslContextOption<T> valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent)
-
exists
public static boolean exists(java.lang.String name)
-
validate
public void validate(T value)
Validate the value which is set for theSslContextOption. Sub-classes may override this for special checks.
-
-