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
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
CUSTOM
public static Method CUSTOM(String methodName)
parseDataChunk
public static Method parseDataChunk(DataChunk methodC)
- Deprecated. pls. use
valueOf(org.glassfish.grizzly.http.util.DataChunk).
valueOf
public static Method valueOf(DataChunk methodC)
valueOf
public static Method valueOf(String method)
getMethodString
public String getMethodString()
getMethodBytes
public byte[] getMethodBytes()
toString
public String toString()
- Overrides:
toString in class Object
matchesMethod
public boolean matchesMethod(String method)
Copyright © 2012 Oracle Corporation. All Rights Reserved.