Package kong.unirest.core
Class HttpMethod
- java.lang.Object
-
- kong.unirest.core.HttpMethod
-
public class HttpMethod extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static HttpMethodDELETEstatic HttpMethodGETstatic HttpMethodHEADprivate java.lang.Stringnamestatic HttpMethodOPTIONSstatic HttpMethodPATCHstatic HttpMethodPOSTstatic HttpMethodPUTprivate static java.util.Map<java.lang.String,HttpMethod>REGISTRYstatic HttpMethodTRACEstatic HttpMethodWEBSOCKET
-
Constructor Summary
Constructors Modifier Constructor Description privateHttpMethod(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<HttpMethod>all()java.lang.Stringname()java.lang.StringtoString()static HttpMethodvalueOf(java.lang.String verb)
-
-
-
Field Detail
-
REGISTRY
private static final java.util.Map<java.lang.String,HttpMethod> REGISTRY
-
GET
public static final HttpMethod GET
-
POST
public static final HttpMethod POST
-
PUT
public static final HttpMethod PUT
-
DELETE
public static final HttpMethod DELETE
-
PATCH
public static final HttpMethod PATCH
-
HEAD
public static final HttpMethod HEAD
-
OPTIONS
public static final HttpMethod OPTIONS
-
TRACE
public static final HttpMethod TRACE
-
WEBSOCKET
public static final HttpMethod WEBSOCKET
-
name
private final java.lang.String name
-
-
Method Detail
-
valueOf
public static HttpMethod valueOf(java.lang.String verb)
-
all
public java.util.Set<HttpMethod> all()
-
name
public java.lang.String name()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-