java.io.Serializable, java.lang.Comparable<HttpConfig.Policy>public static enum HttpConfig.Policy extends java.lang.Enum<HttpConfig.Policy>
| Enum Constant | Description |
|---|---|
HTTP_AND_HTTPS |
|
HTTP_ONLY |
|
HTTPS_ONLY |
| Modifier and Type | Method | Description |
|---|---|---|
static HttpConfig.Policy |
fromString(java.lang.String value) |
|
boolean |
isHttpEnabled() |
|
boolean |
isHttpsEnabled() |
|
static HttpConfig.Policy |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static HttpConfig.Policy[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpConfig.Policy HTTP_ONLY
public static final HttpConfig.Policy HTTPS_ONLY
public static final HttpConfig.Policy HTTP_AND_HTTPS
public static HttpConfig.Policy[] values()
for (HttpConfig.Policy c : HttpConfig.Policy.values()) System.out.println(c);
public static HttpConfig.Policy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static HttpConfig.Policy fromString(java.lang.String value)
public boolean isHttpEnabled()
public boolean isHttpsEnabled()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.