Package net.officefloor.server.http
Class HttpMethod
java.lang.Object
net.officefloor.server.http.HttpMethod
- All Implemented Interfaces:
Serializable
HTTP method.
- Author:
- Daniel Sagenschneider
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic HttpMethodCONNECTHttpMethodsingleton.static HttpMethodDELETEHttpMethodsingleton.static HttpMethodGETHttpMethodsingleton.static HttpMethodHEADHttpMethodsingleton.static HttpMethodOPTIONSHttpMethodsingleton.static HttpMethodPOSTHttpMethodsingleton.static HttpMethodPUTHttpMethodsingleton. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEnum()Obtains theHttpMethod.HttpMethodEnumfor thisHttpMethod.static HttpMethodgetHttpMethod(String methodName) Obtains theHttpMethod.getName()Obtains theHttpMethodname.inthashCode()booleanisEqual(HttpMethod httpMethod) Equals without the type checking.toString()
-
Field Details
-
CONNECT
CONNECTHttpMethodsingleton. -
DELETE
DELETEHttpMethodsingleton. -
GET
GETHttpMethodsingleton. -
HEAD
HEADHttpMethodsingleton. -
OPTIONS
OPTIONSHttpMethodsingleton. -
PUT
PUTHttpMethodsingleton. -
POST
POSTHttpMethodsingleton.
-
-
Constructor Details
-
HttpMethod
Instantiate a dynamicHttpMethod.- Parameters:
name- Name of theHttpMethod.
-
-
Method Details
-
getHttpMethod
Obtains theHttpMethod.- Parameters:
methodName- Name of theHttpMethod.- Returns:
HttpMethod.
-
isEqual
Equals without the type checking.- Parameters:
httpMethod-HttpMethod.- Returns:
trueif sameHttpMethod.
-
getEnum
Obtains theHttpMethod.HttpMethodEnumfor thisHttpMethod.- Returns:
HttpMethod.HttpMethodEnum.
-
getName
Obtains theHttpMethodname.- Returns:
HttpMethodname.
-
hashCode
public int hashCode() -
equals
-
toString
-