Package lumis.portal.url
Enum IURLManager.PathReferenceType
- java.lang.Object
-
- java.lang.Enum<IURLManager.PathReferenceType>
-
- lumis.portal.url.IURLManager.PathReferenceType
-
- All Implemented Interfaces:
Serializable
,Comparable<IURLManager.PathReferenceType>
- Enclosing interface:
- IURLManager
public static enum IURLManager.PathReferenceType extends Enum<IURLManager.PathReferenceType>
Used to specify how html references should be made. Either relative to current path (default), root, or full website. This fix rule is only enforced where applicable.- Since:
- 10.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IURLManager.PathReferenceType
getFromPage(PageConfig pageConfig, Object request)
static IURLManager.PathReferenceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static IURLManager.PathReferenceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final IURLManager.PathReferenceType DEFAULT
fix placing ../.. etc to path.- Since:
- 10.0.0
-
ROOT
public static final IURLManager.PathReferenceType ROOT
path is fixed with putting a / in the beginning.- Since:
- 10.0.0
-
WEBSITE
public static final IURLManager.PathReferenceType WEBSITE
path is fixed with the complete website url.- Since:
- 10.0.0
-
-
Method Detail
-
values
public static IURLManager.PathReferenceType[] 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 (IURLManager.PathReferenceType c : IURLManager.PathReferenceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IURLManager.PathReferenceType 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
-
getFromPage
public static IURLManager.PathReferenceType getFromPage(PageConfig pageConfig, Object request) throws PortalException
- Throws:
PortalException
-
-