public static enum WxApiRequest.Method extends Enum<WxApiRequest.Method>
Enum Constant and Description |
---|
DELETE |
FORM |
GET |
JSON |
OPTIONS |
PATCH |
PUT |
TRACE |
XML |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.HttpMethod |
getHttpMethod() |
static WxApiRequest.Method |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WxApiRequest.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WxApiRequest.Method GET
public static final WxApiRequest.Method JSON
public static final WxApiRequest.Method XML
public static final WxApiRequest.Method FORM
public static final WxApiRequest.Method PUT
public static final WxApiRequest.Method PATCH
public static final WxApiRequest.Method DELETE
public static final WxApiRequest.Method OPTIONS
public static final WxApiRequest.Method TRACE
public static WxApiRequest.Method[] values()
for (WxApiRequest.Method c : WxApiRequest.Method.values()) System.out.println(c);
public static WxApiRequest.Method 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 org.springframework.http.HttpMethod getHttpMethod()
Copyright © 2018 Guangshan Technology, Inc.. All rights reserved.