public enum Http1Method extends Enum<Http1Method> implements org.apache.thrift.TEnum
Enum Constant and Description |
---|
CONNECT |
DELETE |
GET |
HEAD |
OPTIONS |
PATCH |
POST |
PUT |
TRACE |
Modifier and Type | Method and Description |
---|---|
static Http1Method |
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.
|
int |
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.
|
static Http1Method |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Http1Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Http1Method CONNECT
public static final Http1Method DELETE
public static final Http1Method GET
public static final Http1Method HEAD
public static final Http1Method OPTIONS
public static final Http1Method PATCH
public static final Http1Method POST
public static final Http1Method PUT
public static final Http1Method TRACE
public static Http1Method[] values()
for (Http1Method c : Http1Method.values()) System.out.println(c);
public static Http1Method 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 int getValue()
getValue
in interface org.apache.thrift.TEnum
public static Http1Method findByValue(int value)
Copyright © 2016. All Rights Reserved.