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.
|
name
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
render
public 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()
HttpMethod
value
in interface SingletonValueRenderable
value
in class HttpMethod
public boolean isSafe()
HttpMethod
isSafe
in class HttpMethod
public boolean isIdempotent()
HttpMethod
isIdempotent
in class HttpMethod
public RequestEntityAcceptance requestEntityAcceptance()
public boolean isEntityAccepted()
HttpMethod
isEntityAccepted
in class HttpMethod
public java.lang.String toString()
toString
in class java.lang.Object