Package org.glassfish.grizzly.http
Class Method
- java.lang.Object
-
- org.glassfish.grizzly.http.Method
-
public final class Method extends Object
Predefined HTTP methods- Author:
- Alexey Stashok
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMethod.PayloadExpectation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MethodCUSTOM(String methodName)static MethodCUSTOM(String methodName, Method.PayloadExpectation payloadExpectation)byte[]getMethodBytes()StringgetMethodString()Method.PayloadExpectationgetPayloadExpectation()booleanmatchesMethod(String method)StringtoString()static MethodvalueOf(String method)static MethodvalueOf(DataChunk methodC)
-
-
-
Field Detail
-
OPTIONS
public static final Method OPTIONS
-
GET
public static final Method GET
-
HEAD
public static final Method HEAD
-
POST
public static final Method POST
-
PUT
public static final Method PUT
-
DELETE
public static final Method DELETE
-
TRACE
public static final Method TRACE
-
CONNECT
public static final Method CONNECT
-
PATCH
public static final Method PATCH
-
PRI
public static final Method PRI
-
-
Method Detail
-
CUSTOM
public static Method CUSTOM(String methodName, Method.PayloadExpectation payloadExpectation)
-
getMethodString
public String getMethodString()
-
getMethodBytes
public byte[] getMethodBytes()
-
getPayloadExpectation
public Method.PayloadExpectation getPayloadExpectation()
-
matchesMethod
public boolean matchesMethod(String method)
-
-