Example usage for org.apache.commons.httpclient DefaultHttpMethodRetryHandler subclass-usage

List of usage examples for org.apache.commons.httpclient DefaultHttpMethodRetryHandler subclass-usage

Introduction

In this page you can find the example usage for org.apache.commons.httpclient DefaultHttpMethodRetryHandler subclass-usage.

Usage

From source file org.mule.transport.http.MuleHttpMethodRetryHandler.java

public class MuleHttpMethodRetryHandler extends DefaultHttpMethodRetryHandler {
    @Override
    public boolean retryMethod(final HttpMethod method, final IOException exception, int executionCount) {
        if ((executionCount < this.getRetryCount()) && (exception instanceof SocketException)) {
            return true;
        }

From source file com.zimbra.common.httpclient.InputStreamRequestHttpRetryHandler.java

public class InputStreamRequestHttpRetryHandler extends DefaultHttpMethodRetryHandler {

    /**
     * Same as default, but returns false if method is an unbuffered input stream request 
     * This avoids HttpMethodDirector masking real IO exception with bogus 'Unbuffered content cannot be retried' exception
     */