Enum Class ResolutionIdentifierType
java.lang.Object
java.lang.Enum<ResolutionIdentifierType>
com.broadleafcommerce.data.tracking.core.type.ResolutionIdentifierType
- All Implemented Interfaces:
Serializable
,Comparable<ResolutionIdentifierType>
,Constable
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 are
DOMAIN
and DOMAIN_PREFIX
.- Author:
- Nathan Moore (nathanmoore).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis type indicates that a tenant or application should be resolved based on a matching root context path:my-application
inhttps://www.mycompany.com/my-application
.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/
.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/
.This type indicates that a tenant or application should be resolved based on a matching parameter:myapplication
inhttps://mycompany.com?application=myapplication
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResolutionIdentifierType
Returns the enum constant of this class with the specified name.static ResolutionIdentifierType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
. -
CONTEXT_PATH
This type indicates that a tenant or application should be resolved based on a matching root context path:my-application
inhttps://www.mycompany.com/my-application
.IMPORTANT: This will only match the first path segment (from the first
/
to the second/
. The identifier should not include slashes, these will be stripped during resolution.- Since:
- 1.8.6
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-