Package com.atlassian.sal.api
Enum UrlMode
- All Implemented Interfaces:
Serializable,Comparable<UrlMode>,java.lang.constant.Constable
The kind of URL to return from methods that accept this as a parameter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGenerate a URL that is absolute.Generate a URL that is absolute, using the canonical URL.Generate a URL that is relative, containing just the context path.Generate a URL that is relative, containing just the context path. -
Method Summary
-
Enum Constant Details
-
CANONICAL
Generate a URL that is absolute, using the canonical URL. e.g. http://www.example.com:8080/myapp. Useful for generating links for emails. -
ABSOLUTE
Generate a URL that is absolute. Will be derived from the URL of a request in the current scope, orCANONICALif there is no such request. e.g. http://www:8080/myapp. -
RELATIVE
Generate a URL that is relative, containing just the context path. Will be derived from the URL of a request in the current scope, or fromCANONICALif there is no such request. e.g. /myapp. -
RELATIVE_CANONICAL
Generate a URL that is relative, containing just the context path. Will be derived from theCANONICALURL. e.g. /myapp. -
AUTO
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-