com.atlassian.plugins.rest.common.security
Enum CorsHeaders

java.lang.Object
  extended by java.lang.Enum<CorsHeaders>
      extended by com.atlassian.plugins.rest.common.security.CorsHeaders
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CorsHeaders>

public enum CorsHeaders
extends java.lang.Enum<CorsHeaders>

HTTP Headers for Cross-Origin Resource Sharing


Enum Constant Summary
ACCESS_CONTROL_ALLOW_CREDENTIALS
           
ACCESS_CONTROL_ALLOW_HEADERS
           
ACCESS_CONTROL_ALLOW_METHODS
           
ACCESS_CONTROL_ALLOW_ORIGIN
           
ACCESS_CONTROL_EXPOSE_HEADERS
           
ACCESS_CONTROL_MAX_AGE
           
ACCESS_CONTROL_REQUEST_HEADERS
           
ACCESS_CONTROL_REQUEST_METHOD
           
ORIGIN
           
 
Method Summary
 java.lang.String value()
           
static CorsHeaders valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CorsHeaders[] 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

ACCESS_CONTROL_EXPOSE_HEADERS

public static final CorsHeaders ACCESS_CONTROL_EXPOSE_HEADERS

ACCESS_CONTROL_ALLOW_HEADERS

public static final CorsHeaders ACCESS_CONTROL_ALLOW_HEADERS

ACCESS_CONTROL_ALLOW_METHODS

public static final CorsHeaders ACCESS_CONTROL_ALLOW_METHODS

ACCESS_CONTROL_MAX_AGE

public static final CorsHeaders ACCESS_CONTROL_MAX_AGE

ACCESS_CONTROL_ALLOW_ORIGIN

public static final CorsHeaders ACCESS_CONTROL_ALLOW_ORIGIN

ACCESS_CONTROL_ALLOW_CREDENTIALS

public static final CorsHeaders ACCESS_CONTROL_ALLOW_CREDENTIALS

ACCESS_CONTROL_REQUEST_HEADERS

public static final CorsHeaders ACCESS_CONTROL_REQUEST_HEADERS

ACCESS_CONTROL_REQUEST_METHOD

public static final CorsHeaders ACCESS_CONTROL_REQUEST_METHOD

ORIGIN

public static final CorsHeaders ORIGIN
Method Detail

values

public static CorsHeaders[] 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 (CorsHeaders c : CorsHeaders.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CorsHeaders valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public java.lang.String value()


Copyright © 2014 Atlassian. All Rights Reserved.