public static enum RouteParameter.Kind extends Enum<RouteParameter.Kind>
| Enum Constant and Description |
|---|
BODY
HTTP body.
|
FILE
File as part of a multipart-upload.
|
FORM
HTTP form param submitted as formurlencoded or multipart.
|
HEADER
HTTP header .
|
PATH
HTTP param inside a path.
|
QUERY
HTTP param inside a query.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <T> T |
accept(RouteParameter parameter,
RouteParameter.Visitor<T> visitor) |
static RouteParameter.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RouteParameter.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RouteParameter.Kind QUERY
public static final RouteParameter.Kind PATH
public static final RouteParameter.Kind FORM
public static final RouteParameter.Kind BODY
public static final RouteParameter.Kind FILE
public static final RouteParameter.Kind HEADER
public static RouteParameter.Kind[] values()
for (RouteParameter.Kind c : RouteParameter.Kind.values()) System.out.println(c);
public static RouteParameter.Kind 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 nullpublic abstract <T> T accept(RouteParameter parameter, RouteParameter.Visitor<T> visitor)
Copyright © 2021. All rights reserved.