public abstract class AbstractMethod extends java.lang.Object implements HttpMethod
HttpMethod. By default this method is not safe and not idempotent.| Constructor and Description |
|---|
AbstractMethod(java.lang.String verb)
Instantiates a new
HttpMethod with the given verb. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
idempotent()
Indicates that a 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.
|
boolean |
safe()
Indicates that a request method is safe, which means that the request is not intended and not expected to change any state on the server.
|
java.lang.String |
verb()
Returns the HTTP verb of this method.
|
public AbstractMethod(java.lang.String verb)
HttpMethod with the given verb.verb - The method verb.public final java.lang.String verb()
HttpMethodverb in interface HttpMethodpublic boolean safe()
HttpMethodsafe in interface HttpMethodpublic boolean idempotent()
HttpMethodidempotent in interface HttpMethodpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object