Package io.quarkus.vertx.web
Enum Route.HttpMethod
- java.lang.Object
-
- java.lang.Enum<Route.HttpMethod>
-
- io.quarkus.vertx.web.Route.HttpMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<Route.HttpMethod>
- Enclosing class:
- Route
public static enum Route.HttpMethod extends Enum<Route.HttpMethod>
Represents an HTTP method. This enumeration only provides the common HTTP method. For custom methods, you need to register theroute
manually on the managedRouter
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Route.HttpMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static Route.HttpMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final Route.HttpMethod GET
-
HEAD
public static final Route.HttpMethod HEAD
-
POST
public static final Route.HttpMethod POST
-
PUT
public static final Route.HttpMethod PUT
-
DELETE
public static final Route.HttpMethod DELETE
-
OPTIONS
public static final Route.HttpMethod OPTIONS
-
-
Method Detail
-
values
public static Route.HttpMethod[] 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 (Route.HttpMethod c : Route.HttpMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Route.HttpMethod 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
-
-