Top Description Inners Fields Constructors Methods
org.glassfish.grizzly.http

public final Class Method

extends Object
Class Inheritance
Imports
java.io.UnsupportedEncodingException, org.glassfish.grizzly.http.util.DataChunk

Predefined HTTP methods
Author
Alexey Stashok

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
public static final Method
public static final Method
public static final Method
public static final Method
private final byte[]
private final String
public static final Method
public static final Method
private final Method.PayloadExpectation
public static final Method
public static final Method
public static final Method
public static final Method

Constructor Summary

AccessConstructor and Description
private
Method(final String methodString, final Method.PayloadExpectation payloadExpectation)

Method Summary

Modifier and TypeMethod and Description
public static Method
CUSTOM(final String methodName)

public static Method
CUSTOM(final String methodName, final Method.PayloadExpectation payloadExpectation)

public byte[]
public String
public Method.PayloadExpectation
public boolean
matchesMethod(final String method)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public static Method
valueOf(final DataChunk methodC)

public static Method
valueOf(final String method)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

CONNECTback to summary
public static final Method CONNECT
DELETEback to summary
public static final Method DELETE
GETback to summary
public static final Method GET
methodBytesback to summary
private final byte[] methodBytes
methodStringback to summary
private final String methodString
OPTIONSback to summary
public static final Method OPTIONS
PATCHback to summary
public static final Method PATCH
payloadExpectationback to summary
private final Method.PayloadExpectation payloadExpectation
POSTback to summary
public static final Method POST
PRIback to summary
public static final Method PRI
PUTback to summary
public static final Method PUT
TRACEback to summary
public static final Method TRACE

Constructor Detail

Methodback to summary
private Method(final String methodString, final Method.PayloadExpectation payloadExpectation)

Method Detail

CUSTOMback to summary
public static Method CUSTOM(final String methodName)
CUSTOMback to summary
public static Method CUSTOM(final String methodName, final Method.PayloadExpectation payloadExpectation)
getMethodBytesback to summary
public byte[] getMethodBytes()
getMethodStringback to summary
public String getMethodString()
getPayloadExpectationback to summary
public Method.PayloadExpectation getPayloadExpectation()
matchesMethodback to summary
public boolean matchesMethod(final String method)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
valueOfback to summary
public static Method valueOf(final DataChunk methodC)
valueOfback to summary
public static Method valueOf(final String method)
org.glassfish.grizzly.http back to summary

public final Enum Method.PayloadExpectation

extends Enum<Method.PayloadExpectation>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Method.PayloadExpectation
public static final Method.PayloadExpectation
public static final Method.PayloadExpectation

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Method.PayloadExpectation
public static Method.PayloadExpectation[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ALLOWEDback to summary
public static final Method.PayloadExpectation ALLOWED
NOT_ALLOWEDback to summary
public static final Method.PayloadExpectation NOT_ALLOWED
UNDEFINEDback to summary
public static final Method.PayloadExpectation UNDEFINED

Constructor Detail

PayloadExpectationback to summary
private PayloadExpectation()

Method Detail

valueOfback to summary
public static Method.PayloadExpectation valueOf(String name)
valuesback to summary
public static Method.PayloadExpectation[] values()