T - the type of the value which is valid for the SslContextOptionpublic 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.| 限定符 | 构造器和说明 |
|---|---|
protected |
SslContextOption(java.lang.String name)
Should be used by sub-classes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
exists(java.lang.String name)
|
void |
validate(T value)
Validate the value which is set for the
SslContextOption. |
static <T> SslContextOption<T> |
valueOf(java.lang.Class<?> firstNameComponent,
java.lang.String secondNameComponent)
|
static <T> SslContextOption<T> |
valueOf(java.lang.String name)
Returns the
SslContextOption of the specified name. |
protected SslContextOption(java.lang.String name)
name - the name of the optionpublic static <T> SslContextOption<T> valueOf(java.lang.String name)
SslContextOption of the specified name.public static <T> SslContextOption<T> valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent)
public static boolean exists(java.lang.String name)
public void validate(T value)
SslContextOption. Sub-classes
may override this for special checks.