Package org.apache.juneau.http
Class HttpMethod
java.lang.Object
org.apache.juneau.http.HttpMethod
Represents valid HTTP 1.1 method name static strings per the RFC 2616 spec.
See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Represents any HTTP method.static final String
static final String
static final String
static final String
static final String
static final String
A non-standard value.static final String
static final String
static final String
static final String
Special case for a REST method that implements a REST-RPC interface.static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasContent
(String name) Returnstrue if specified http method has content.
-
Field Details
-
OPTIONS
- See Also:
-
GET
- See Also:
-
HEAD
- See Also:
-
POST
- See Also:
-
PUT
- See Also:
-
DELETE
- See Also:
-
TRACE
- See Also:
-
CONNECT
- See Also:
-
PATCH
- See Also:
-
RRPC
Special case for a REST method that implements a REST-RPC interface.- See Also:
-
OTHER
A non-standard value.- See Also:
-
ANY
Represents any HTTP method.- See Also:
-
-
Constructor Details
-
HttpMethod
public HttpMethod()
-
-
Method Details
-
hasContent
Returnstrue if specified http method has content.By default, anything not in this list can have content:
GET, HEAD, DELETE, CONNECT, OPTIONS, TRACE .- Parameters:
name
- The HTTP method.- Returns:
true if specified http method has content.
-