public static final class HttpRequestMethod.Properties
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static HttpRequestMethod.Properties |
CACHEABLE
As defined in Method Definitions, methods which
are cacheable, but not safe or idempotent.
|
static HttpRequestMethod.Properties |
IDEMPOTENT
As defined in Method Definitions, methods which
are idempotent, but not safe or cacheable.
|
static HttpRequestMethod.Properties |
NONE
As defined in Method Definitions, methods which
are not safe, idempotent, or cacheable.
|
static HttpRequestMethod.Properties |
SAFE_IDEMPOTENT
As defined in Method Definitions, methods which
are safe and idempotent, but not cacheable.
|
static HttpRequestMethod.Properties |
SAFE_IDEMPOTENT_CACHEABLE
As defined in Method Definitions, methods which
are safe, idempotent, and cacheable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isCacheable()
Cacheable Methods are those that allow for
responses to be cached for future reuse.
|
boolean |
isIdempotent()
Idempotent Methods are those that the same
action can be repeated indefinitely without changing semantics.
|
boolean |
isSafe()
Safe Methods are those that are essentially
read-only.
|
static HttpRequestMethod.Properties |
newRequestMethodProperties(boolean safe,
boolean idempotent,
boolean cacheable)
|
public static final HttpRequestMethod.Properties SAFE_IDEMPOTENT_CACHEABLE
public static final HttpRequestMethod.Properties SAFE_IDEMPOTENT
public static final HttpRequestMethod.Properties IDEMPOTENT
public static final HttpRequestMethod.Properties CACHEABLE
public static final HttpRequestMethod.Properties NONE
public static HttpRequestMethod.Properties newRequestMethodProperties(boolean safe, boolean idempotent, boolean cacheable)
HttpRequestMethod.Properties
object for specified safe
, idempotent
, and cacheable
.
Generally, the constants in HttpRequestMethod.Properties
should be used.safe
- true
if a safe methodidempotent
- true
if a idempotent
methodcacheable
- true
if a cacheable
methodHttpRequestMethod.Properties
instance.public boolean isSafe()
true
if a safe methodpublic boolean isIdempotent()
true
if an idempotent methodpublic boolean isCacheable()
true
if a cacheable methodpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object