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,
scala.Function1<StatusCode,java.lang.Object> contentLengthAllowed) |
| Modifier and Type | Method and Description |
|---|---|
scala.Function1<StatusCode,java.lang.Object> |
contentLengthAllowed() |
static HttpMethod |
custom(java.lang.String name)
Creates a custom method by name and assumes properties conservatively to be
safe = false, idempotent = false, requestEntityAcceptance = Expected and contentLengthAllowed always true.
|
static HttpMethod |
custom(java.lang.String name,
boolean safe,
boolean idempotent,
RequestEntityAcceptance requestEntityAcceptance)
Deprecated.
The created method will compute the presence of Content-Length headers based on deprecated logic.
|
static HttpMethod |
custom(java.lang.String name,
boolean safe,
boolean idempotent,
RequestEntityAcceptance requestEntityAcceptance,
boolean contentLengthAllowed)
Create a custom method type.
|
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,
scala.Function1<StatusCode,java.lang.Object> contentLengthAllowed)
public static HttpMethod custom(java.lang.String name, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance)
name - (undocumented)safe - (undocumented)idempotent - (undocumented)requestEntityAcceptance - (undocumented)public static HttpMethod custom(java.lang.String name, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance, boolean contentLengthAllowed)
name - (undocumented)safe - (undocumented)idempotent - (undocumented)requestEntityAcceptance - (undocumented)contentLengthAllowed - (undocumented)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 scala.Function1<StatusCode,java.lang.Object> contentLengthAllowed()
public boolean isEntityAccepted()
HttpMethodisEntityAccepted in class HttpMethodpublic java.lang.String toString()
toString in class java.lang.Object