|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.http.HttpCommand
public class HttpCommand
Command whose endpoint is an http service.
| Constructor Summary | |
|---|---|
HttpCommand(HttpRequest request)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object that)
|
HttpRequest |
getCurrentRequest()
The request associated with this command. |
Exception |
getException()
|
int |
getFailureCount()
This displays the current number of error retries for this command. |
int |
getRedirectCount()
This displays the current number of redirect attempts for this command. |
int |
hashCode()
|
int |
incrementFailureCount()
increment the current failure count. |
int |
incrementRedirectCount()
increments the current number of redirect attempts for this command. |
boolean |
isReplayable()
Commands need to be replayed, if redirected or on a retryable error. |
void |
setCurrentRequest(HttpRequest request)
The request associated with this command. |
void |
setException(Exception exception)
Used to prevent a command from being re-executed, or having its response parsed. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpCommand(HttpRequest request)
| Method Detail |
|---|
public int getFailureCount()
org.jclouds.Constants.PROPERTY_MAX_RETRIESpublic int incrementFailureCount()
getFailureCount()public void setException(Exception exception)
public Exception getException()
setException(java.lang.Exception)public int incrementRedirectCount()
getRedirectCount()public int getRedirectCount()
org.jclouds.Constants.PROPERTY_MAX_REDIRECTSpublic boolean isReplayable()
public HttpRequest getCurrentRequest()
public void setCurrentRequest(HttpRequest request)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object that)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||