org.apache.sling.testing.tools.http
Class RetryingContentChecker

java.lang.Object
  extended by org.apache.sling.testing.tools.http.RetryingContentChecker

public class RetryingContentChecker
extends java.lang.Object

Retry a GET on an URL until it returns 200 or until this times out.


Constructor Summary
RetryingContentChecker(RequestExecutor executor, RequestBuilder builder)
           
 
Method Summary
protected  boolean assertMore(RequestExecutor executor)
          Optionally perform additional tests in retry condition
 void check(java.lang.String path, int expectedStatus, int timeoutSeconds, int intervalBetweenrequestsMsec)
          Check specified path for expected status, or timeout
protected  void onTimeout()
          Called if a timeout occurs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryingContentChecker

public RetryingContentChecker(RequestExecutor executor,
                              RequestBuilder builder)
Method Detail

check

public void check(java.lang.String path,
                  int expectedStatus,
                  int timeoutSeconds,
                  int intervalBetweenrequestsMsec)
Check specified path for expected status, or timeout


assertMore

protected boolean assertMore(RequestExecutor executor)
                      throws java.lang.Exception
Optionally perform additional tests in retry condition

Throws:
java.lang.Exception

onTimeout

protected void onTimeout()
Called if a timeout occurs



Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.