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:
BoringSSLContextOption,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.
-
-
Constructor Summary
Constructors Modifier Constructor Description 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.
-
-
-
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.
-
-