com.atlassian.jira.configurator.config
Enum WebServerProfile

java.lang.Object
  extended by java.lang.Enum<WebServerProfile>
      extended by com.atlassian.jira.configurator.config.WebServerProfile
All Implemented Interfaces:
Serializable, Comparable<WebServerProfile>

public enum WebServerProfile
extends Enum<WebServerProfile>


Enum Constant Summary
Disabled
           
HttpOnly
           
HttpRedirectedToHttps
           
HttpsOnly
           
 
Method Summary
 String getLabel()
           
static List<WebServerProfile> getUsableProfiles(Settings settings)
           
 boolean isHttpEnabled()
           
 boolean isHttpsEnabled()
           
 boolean isPreventedBy(List<ComplexConfigurationReason> complexConfigurationReasons)
           
static WebServerProfile retrieveByFlags(boolean httpEnabled, boolean httpsEnabled)
           
static WebServerProfile valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WebServerProfile[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Disabled

public static final WebServerProfile Disabled

HttpOnly

public static final WebServerProfile HttpOnly

HttpRedirectedToHttps

public static final WebServerProfile HttpRedirectedToHttps

HttpsOnly

public static final WebServerProfile HttpsOnly
Method Detail

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-2014 Atlassian. All Rights Reserved.