Package org.apache.juneau.rest.httppart
Enum RestPartType
- All Implemented Interfaces:
Serializable
,Comparable<RestPartType>
,java.lang.constant.Constable
Represents the possible parameter types as defined by the Swagger 2.0 specification.
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRequest bodyForm data entryHeader valueNot a standard Swagger-defined fieldPath variableQuery parameterResponse valueResponse valueResponse status valueResponse header value -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAny
(RestPartType... t) Returnstrue if this type is any in the specified list.toString()
static RestPartType
Returns the enum constant of this type with the specified name.static RestPartType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PATH
Path variable -
HEADER
Header value -
FORM_DATA
Form data entry -
QUERY
Query parameter -
BODY
Request body -
RESPONSE
Response value -
RESPONSE_BODY
Response value -
RESPONSE_HEADER
Response header value -
RESPONSE_CODE
Response status value -
OTHER
Not a standard Swagger-defined field
-
-
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
-
isAny
Returnstrue if this type is any in the specified list.- Parameters:
t
- The list to check against.- Returns:
true if this type is any in the specified list.
-
toString
- Overrides:
toString
in classEnum<RestPartType>
-