Package org.apache.wicket.request
Enum Url.StringMode
- java.lang.Object
-
- java.lang.Enum<Url.StringMode>
-
- org.apache.wicket.request.Url.StringMode
-
- All Implemented Interfaces:
Serializable
,Comparable<Url.StringMode>
- Enclosing class:
- Url
public static enum Url.StringMode extends Enum<Url.StringMode>
Modes with which urls can be stringized- Author:
- igor
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Url.StringMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static Url.StringMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCAL
public static final Url.StringMode LOCAL
local urls are rendered without the host name
-
FULL
public static final Url.StringMode FULL
full urls are written with hostname. if the hostname is not set or one of segments is .. anIllegalStateException
is thrown.
-
-
Method Detail
-
values
public static Url.StringMode[] 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 (Url.StringMode c : Url.StringMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Url.StringMode 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
-
-