Package org.jclouds.http
Class HttpCommand
java.lang.Object
org.jclouds.http.HttpCommand
Command whose endpoint is an http service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe request associated with this command.intThis displays the current number of error retries for this command.intThis displays the current number of redirect attempts for this command.inthashCode()intincrement the current failure count.intincrements the current number of redirect attempts for this command.booleanCommands need to be replayed, if redirected or on a retryable error.voidsetCurrentRequest(HttpRequest request) The request associated with this command.voidsetException(Exception exception) Used to prevent a command from being re-executed, or having its response parsed.toString()
-
Constructor Details
-
HttpCommand
-
-
Method Details
-
getFailureCount
public int getFailureCount()This displays the current number of error retries for this command.- See Also:
-
incrementFailureCount
public int incrementFailureCount()increment the current failure count.- See Also:
-
setException
Used to prevent a command from being re-executed, or having its response parsed. -
getException
- See Also:
-
incrementRedirectCount
public int incrementRedirectCount()increments the current number of redirect attempts for this command.- See Also:
-
getRedirectCount
public int getRedirectCount()This displays the current number of redirect attempts for this command.- See Also:
-
isReplayable
public boolean isReplayable()Commands need to be replayed, if redirected or on a retryable error. Typically, this implies the payload carried is not a streaming type. -
getCurrentRequest
The request associated with this command. -
setCurrentRequest
The request associated with this command. -
hashCode
public int hashCode() -
equals
-
toString
-