Air
2024-11-04 a1f06d31b7b4cac569c34bdfbb68de77f2858ffe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.nova.sankuai.infra.utils.baofu.http;
 
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
 
/**
 * 项目名称:baofoo-fopay-sdk-java
 * 类名称:表单参数
 * 类描述:
 * 创建人:陈少杰
 * 创建时间:2014-10-22 下午2:58:22
 * 修改人:陈少杰
 * 修改时间:2014-10-22 下午2:58:22
 * @version
 */
@XmlType(name = "httpMethod")
@XmlEnum
public enum HttpMethod {
    GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS;
 
    /**
     * @return
     */
    public String value() {
        return name();
    }
 
    /**
     * @param v
     * @return
     */
    public static HttpMethod fromValue(String v) {
        return valueOf(v);
    }
 
    /**
     * @return
     */
    public static HttpMethod getDefault() {
        return POST;
    }
}