org.apache.commons.vfs.provider.webdav
Class WebdavMethodRetryHandler

java.lang.Object
  extended by org.apache.commons.vfs.provider.webdav.WebdavMethodRetryHandler
All Implemented Interfaces:
org.apache.commons.httpclient.MethodRetryHandler

public class WebdavMethodRetryHandler
extends java.lang.Object
implements org.apache.commons.httpclient.MethodRetryHandler

A retry handler which will retry a failed webdav method one time.
Now that webdavlib didnt support adding a MethodRetryHandler only a few operations are restartable yet.

Version:
$Revision: 452605 $ $Date: 2006-10-03 21:49:25 +0200 (Tue, 03 Oct 2006) $
Author:
Mario Ivankovits

Method Summary
static WebdavMethodRetryHandler getInstance()
           
 boolean retryMethod(org.apache.commons.httpclient.HttpMethod method, org.apache.commons.httpclient.HttpConnection connection, org.apache.commons.httpclient.HttpRecoverableException recoverableException, int executionCount, boolean requestSent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WebdavMethodRetryHandler getInstance()

retryMethod

public boolean retryMethod(org.apache.commons.httpclient.HttpMethod method,
                           org.apache.commons.httpclient.HttpConnection connection,
                           org.apache.commons.httpclient.HttpRecoverableException recoverableException,
                           int executionCount,
                           boolean requestSent)
Specified by:
retryMethod in interface org.apache.commons.httpclient.MethodRetryHandler