|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.gogrid.mock.HttpCommandMock
public class HttpCommandMock
Constructor Summary | |
---|---|
HttpCommandMock()
|
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpCommandMock()
Method Detail |
---|
public int incrementRedirectCount()
HttpCommand
incrementRedirectCount
in interface HttpCommand
HttpCommand.getRedirectCount()
public int getRedirectCount()
HttpCommand
getRedirectCount
in interface HttpCommand
org.jclouds.Constants.PROPERTY_MAX_REDIRECTS
public boolean isReplayable()
HttpCommand
isReplayable
in interface HttpCommand
public int incrementFailureCount()
HttpCommand
incrementFailureCount
in interface HttpCommand
HttpCommand.getFailureCount()
public int getFailureCount()
HttpCommand
getFailureCount
in interface HttpCommand
org.jclouds.Constants.PROPERTY_MAX_RETRIES
public HttpRequest getCurrentRequest()
HttpCommand
getCurrentRequest
in interface HttpCommand
public void setException(Exception exception)
HttpCommand
setException
in interface HttpCommand
public Exception getException()
getException
in interface HttpCommand
HttpCommand.setException(java.lang.Exception)
public void setCurrentRequest(HttpRequest request)
HttpCommand
setCurrentRequest
in interface HttpCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |