public static enum UrlCreator.Mode extends Enum<UrlCreator.Mode>
RELATIVE_URL
,
ABSOLUTE_URL
,
ABSOLUTE_URL_NO_PREFIX
,
INTERNAL_URL
,
EXTERNAL_URL
,
FILE_PATH
Enum Constant and Description |
---|
ABSOLUTE_URL
An absolute url containg the
UrlCreator.getUrlPrefix() - called for "abs:1". |
ABSOLUTE_URL_NO_PREFIX
An absolute url starting with '/' - called for "abs:2".
|
EXTERNAL_URL
An external url: "http://{host}:{port}/{preview_application}/
|
FILE_PATH
A file path.
|
INTERNAL_URL
An internal url: "fs://..." - this can be used to generate urls to media files which should be included
in rendered output - called for "abs:3".
|
RELATIVE_URL
A relative url containing something like '../' - called for "abs:0".
|
Modifier and Type | Method and Description |
---|---|
static UrlCreator.Mode |
forOrdinal(int ordinal)
Returns the mode related to the given ordinal.
|
static UrlCreator.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UrlCreator.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UrlCreator.Mode RELATIVE_URL
public static final UrlCreator.Mode ABSOLUTE_URL
UrlCreator.getUrlPrefix()
- called for "abs:1".public static final UrlCreator.Mode ABSOLUTE_URL_NO_PREFIX
public static final UrlCreator.Mode INTERNAL_URL
EXTERNAL_URL
.public static final UrlCreator.Mode EXTERNAL_URL
public static final UrlCreator.Mode FILE_PATH
public static UrlCreator.Mode[] values()
for (UrlCreator.Mode c : UrlCreator.Mode.values()) System.out.println(c);
public static UrlCreator.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static UrlCreator.Mode forOrdinal(int ordinal)
ordinal
- Ordinal number.IllegalArgumentException
- for invalid argument valuesCopyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500