Enum ResolutionIdentifierType
- java.lang.Object
-
- java.lang.Enum<ResolutionIdentifierType>
-
- com.broadleafcommerce.data.tracking.core.type.ResolutionIdentifierType
-
- All Implemented Interfaces:
Serializable
,Comparable<ResolutionIdentifierType>
public enum ResolutionIdentifierType extends Enum<ResolutionIdentifierType>
Enumerates the possible types of identifiers available to resolve the tenancy and application context. These identifiers are based on all or part of a given tenant or application's domain or hostname. The default types areDOMAIN
andDOMAIN_PREFIX
.- Author:
- Nathan Moore (nathanmoore).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOMAIN
This type indicates that a tenant or application can be identified based on the whole domain or hostname:myapplication.mycompany.com
inhttps://myapplication.mycompany.com/
.DOMAIN_PREFIX
This type indicates that a tenant or application should be resolved based on the first segment of a domain or hostname:myapplication
inhttps://myapplication.mycompany.com/
.PARAMETER
This type indicates that a tenant or application should be resolved based on a matching parameter:myapplication
inhttps://mycompany.com?application=myapplication
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResolutionIdentifierType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResolutionIdentifierType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOMAIN
public static final ResolutionIdentifierType DOMAIN
This type indicates that a tenant or application can be identified based on the whole domain or hostname:myapplication.mycompany.com
inhttps://myapplication.mycompany.com/
.
-
DOMAIN_PREFIX
public static final ResolutionIdentifierType DOMAIN_PREFIX
This type indicates that a tenant or application should be resolved based on the first segment of a domain or hostname:myapplication
inhttps://myapplication.mycompany.com/
.
-
PARAMETER
public static final ResolutionIdentifierType PARAMETER
This type indicates that a tenant or application should be resolved based on a matching parameter:myapplication
inhttps://mycompany.com?application=myapplication
.
-
-
Method Detail
-
values
public static ResolutionIdentifierType[] 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 (ResolutionIdentifierType c : ResolutionIdentifierType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResolutionIdentifierType 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 nameNullPointerException
- if the argument is null
-
-