com.atlassian.jira.configurator.config
Enum WebServerProfile
java.lang.Object
java.lang.Enum<WebServerProfile>
com.atlassian.jira.configurator.config.WebServerProfile
- All Implemented Interfaces:
- Serializable, Comparable<WebServerProfile>
public enum WebServerProfile
- extends Enum<WebServerProfile>
Disabled
public static final WebServerProfile Disabled
HttpOnly
public static final WebServerProfile HttpOnly
HttpRedirectedToHttps
public static final WebServerProfile HttpRedirectedToHttps
HttpsOnly
public static final WebServerProfile HttpsOnly
values
public static WebServerProfile[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (WebServerProfile c : WebServerProfile.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static WebServerProfile valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
isHttpEnabled
public boolean isHttpEnabled()
isHttpsEnabled
public boolean isHttpsEnabled()
getLabel
@Nonnull
public String getLabel()
isPreventedBy
public boolean isPreventedBy(@Nonnull
List<ComplexConfigurationReason> complexConfigurationReasons)
retrieveByFlags
public static WebServerProfile retrieveByFlags(boolean httpEnabled,
boolean httpsEnabled)
getUsableProfiles
@Nonnull
public static List<WebServerProfile> getUsableProfiles(@Nonnull
Settings settings)
Copyright © 2002-2013 Atlassian. All Rights Reserved.