Package io.avaje.jex
Enum Routing.Type
- java.lang.Object
-
- java.lang.Enum<Routing.Type>
-
- io.avaje.jex.Routing.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Routing.Type>
- Enclosing interface:
- Routing
public static enum Routing.Type extends Enum<Routing.Type>
The type of route entry.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Routing.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Routing.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE
public static final Routing.Type BEFORE
Before filter.
-
AFTER
public static final Routing.Type AFTER
After filter.
-
GET
public static final Routing.Type GET
Http GET.
-
POST
public static final Routing.Type POST
Http POST.
-
PUT
public static final Routing.Type PUT
HTTP PUT.
-
PATCH
public static final Routing.Type PATCH
HTTP PATCH.
-
DELETE
public static final Routing.Type DELETE
HTTP DELETE.
-
HEAD
public static final Routing.Type HEAD
HTTP HEAD.
-
TRACE
public static final Routing.Type TRACE
HTTP TRACE.
-
-
Method Detail
-
values
public static Routing.Type[] 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 (Routing.Type c : Routing.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Routing.Type 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
-
-