public static enum HttpConfig.Policy extends Enum<HttpConfig.Policy>
Enum Constant and Description |
---|
HTTP_AND_HTTPS |
HTTP_ONLY |
HTTPS_ONLY |
Modifier and Type | Method and Description |
---|---|
HttpConfig.Policy |
fromString(String value) |
boolean |
isHttpEnabled() |
boolean |
isHttpsEnabled() |
static HttpConfig.Policy |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic HttpConfig.Policy fromString(String value)
public boolean isHttpEnabled()
public boolean isHttpsEnabled()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.