Package org.dmfs.httpessentials.methods
Class IdempotentMethod
java.lang.Object
org.dmfs.httpessentials.methods.AbstractMethod
org.dmfs.httpessentials.methods.IdempotentMethod
- All Implemented Interfaces:
HttpMethod
An idempotent
HttpMethod that's not safe. For idempotent Methods that are also safe use SafeMethod.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if this request method is idempotent, which means that sending multiple identical requests with that method has the same effect as sending one single request to the server.booleanisSafe()Returns if this request method is safe, which means that the request is not intended and not expected to change any state on the server.Methods inherited from class org.dmfs.httpessentials.methods.AbstractMethod
equals, hashCode, supportsRequestPayload, verb
-
Constructor Details
-
IdempotentMethod
-
-
Method Details
-
isSafe
public boolean isSafe()Description copied from interface:HttpMethodReturns if this request method is safe, which means that the request is not intended and not expected to change any state on the server. In effect the semantics are to be considered read-only.- See Also:
-
isIdempotent
public boolean isIdempotent()Description copied from interface:HttpMethodReturns if this request method is idempotent, which means that sending multiple identical requests with that method has the same effect as sending one single request to the server.- See Also:
-