Package io.wcm.handler.url.integrator
Enum IntegratorModes
- java.lang.Object
-
- java.lang.Enum<IntegratorModes>
-
- io.wcm.handler.url.integrator.IntegratorModes
-
- All Implemented Interfaces:
IntegratorMode
,java.io.Serializable
,java.lang.Comparable<IntegratorModes>
public enum IntegratorModes extends java.lang.Enum<IntegratorModes> implements IntegratorMode
Default integrator modes sufficient for the most usecases.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IntegratorModes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IntegratorModes[]
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 interface io.wcm.handler.url.integrator.IntegratorMode
getId, isDetectProtocol, isUseUrlPlaceholders
-
-
-
-
Enum Constant Detail
-
SIMPLE
public static final IntegratorModes SIMPLE
Simple mode. All URLs are automatically externalized to full URLs (if site URL is configured), and the protocol is detected automatically.
-
EXTENDED
public static final IntegratorModes EXTENDED
Extended mode. Placeholders are used when externalizing all URLs, they have to be replaced by the integrating application. No automatic proctocol detection takes place.
-
-
Method Detail
-
values
public static IntegratorModes[] 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 (IntegratorModes c : IntegratorModes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IntegratorModes 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 namejava.lang.NullPointerException
- if the argument is null
-
-