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 SummaryFieldsModifier and TypeFieldDescriptionstatic final StringRepresents any HTTP method.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringA non-standard value.static final Stringstatic final Stringstatic final Stringstatic final StringSpecial case for a REST method that implements a REST-RPC interface.static final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanhasContent(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:
 
- 
RRPCSpecial case for a REST method that implements a REST-RPC interface.- See Also:
 
- 
OTHERA non-standard value.- See Also:
 
- 
ANYRepresents any HTTP method.- See Also:
 
 
- 
- 
Constructor Details- 
HttpMethodpublic HttpMethod()
 
- 
- 
Method Details- 
hasContentReturnstrue 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.
 
 
-