public enum UrlMode extends Enum<UrlMode>
| Enum Constant and Description |
|---|
ABSOLUTE
Generate a URL that is absolute.
|
AUTO
|
CANONICAL
Generate a URL that is absolute, using the canonical URL.
|
RELATIVE
Generate a URL that is relative, containing just the context path.
|
RELATIVE_CANONICAL
Generate a URL that is relative, containing just the context path.
|
| Modifier and Type | Method and Description |
|---|---|
static UrlMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UrlMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UrlMode CANONICAL
public static final UrlMode ABSOLUTE
CANONICAL if there is no such request. e.g. http://www:8080/myapp.public static final UrlMode RELATIVE
CANONICAL if there is no such request. e.g. /myapp.public static final UrlMode RELATIVE_CANONICAL
CANONICAL
URL. e.g. /myapp.public static final UrlMode AUTO
public static UrlMode[] values()
for (UrlMode c : UrlMode.values()) System.out.println(c);
public static UrlMode 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 nullCopyright © 2019 Atlassian. All rights reserved.