cn.net.wanmo.common.http.apache.Method Maven / Gradle / Ivy
package cn.net.wanmo.common.http.apache;
/**
* "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE"
*/
public enum Method {
GET("GET", "GET"),
POST("POST", "POST"),
HEAD("HEAD", "HEAD"),
OPTIONS("OPTIONS", "OPTIONS"),
PUT("PUT", "PUT"),
DELETE("DELETE", "DELETE"),
TRACE("TRACE", "TRACE");
private final String value;
private final String label;
Method(String value, String label) {
this.value = value;
this.label = label;
}
public String getValue() {
return value;
}
public String getLabel() {
return label;
}
}