org.jclouds.gogrid.mock
Class HttpCommandMock

java.lang.Object
  extended by org.jclouds.gogrid.mock.HttpCommandMock
All Implemented Interfaces:
HttpCommand

public class HttpCommandMock
extends Object
implements HttpCommand

Author:
Oleksiy Yarmula

Constructor Summary
HttpCommandMock()
           
 
Method Summary
 Exception getException()
           
 int getFailureCount()
           
 int getRedirectCount()
           
 HttpRequest getRequest()
           
 int incrementFailureCount()
           
 int incrementRedirectCount()
           
 boolean isReplayable()
           
 void setException(Exception exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpCommandMock

public HttpCommandMock()
Method Detail

incrementRedirectCount

public int incrementRedirectCount()
Specified by:
incrementRedirectCount in interface HttpCommand

getRedirectCount

public int getRedirectCount()
Specified by:
getRedirectCount in interface HttpCommand

isReplayable

public boolean isReplayable()
Specified by:
isReplayable in interface HttpCommand

incrementFailureCount

public int incrementFailureCount()
Specified by:
incrementFailureCount in interface HttpCommand

getFailureCount

public int getFailureCount()
Specified by:
getFailureCount in interface HttpCommand

getRequest

public HttpRequest getRequest()
Specified by:
getRequest in interface HttpCommand

setException

public void setException(Exception exception)
Specified by:
setException in interface HttpCommand

getException

public Exception getException()
Specified by:
getException in interface HttpCommand


Copyright © 2009-2010 jclouds. All Rights Reserved.