public final class HttpMethod extends HttpMethod implements SingletonValueRenderable, scala.Product, java.io.Serializable
| Constructor and Description |
|---|
HttpMethod(java.lang.String value,
boolean isSafe,
boolean isIdempotent,
RequestEntityAcceptance requestEntityAcceptance) |
| Modifier and Type | Method and Description |
|---|---|
static HttpMethod |
custom(java.lang.String name)
Creates a custom method by name and assumes properties conservatively to be
safe = false, idempotent = false and requestEntityAcceptance = Expected.
|
static HttpMethod |
custom(java.lang.String name,
boolean safe,
boolean idempotent,
RequestEntityAcceptance requestEntityAcceptance) |
boolean |
isEntityAccepted()
Returns if requests with this method may contain an entity.
|
boolean |
isIdempotent()
Returns if this method is "idempotent" as defined in
http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.2
|
boolean |
isSafe()
Returns if this method is "safe" as defined in
http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.1
|
RequestEntityAcceptance |
requestEntityAcceptance() |
java.lang.String |
toString() |
java.lang.String |
value()
Returns the name of the method.
|
nameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrenderpublic HttpMethod(java.lang.String value,
boolean isSafe,
boolean isIdempotent,
RequestEntityAcceptance requestEntityAcceptance)
public static HttpMethod custom(java.lang.String name, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance)
public static HttpMethod custom(java.lang.String name)
name - (undocumented)public java.lang.String value()
HttpMethodvalue in interface SingletonValueRenderablevalue in class HttpMethodpublic boolean isSafe()
HttpMethodisSafe in class HttpMethodpublic boolean isIdempotent()
HttpMethodisIdempotent in class HttpMethodpublic RequestEntityAcceptance requestEntityAcceptance()
public boolean isEntityAccepted()
HttpMethodisEntityAccepted in class HttpMethodpublic java.lang.String toString()
toString in class java.lang.Object