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 TypeMethodDescriptionboolean
The request associated with this command.int
This displays the current number of error retries for this command.int
This displays the current number of redirect attempts for this command.int
hashCode()
int
increment the current failure count.int
increments the current number of redirect attempts for this command.boolean
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.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
-