All Downloads are FREE. Search and download functionalities are using the official Maven repository.

syncloud.google.docs.RequestExecutor Maven / Gradle / Ivy

The newest version!
package syncloud.google.docs;

import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpResponse;

import java.io.IOException;

public class RequestExecutor {
    private SensitiveRequestRetryer sensitiveRequestRetryer = new SensitiveRequestRetryer();
    private final NonSensitiveRequestRetryer nonSensitiveRequestRetryer = new NonSensitiveRequestRetryer();

    public HttpResponse executeSensitive(final HttpRequest request) throws IOException {
        HttpLogger.log(request);
        return sensitiveRequestRetryer.execute(request);
    }

    public HttpResponse executeNonSensitive(final HttpRequest request) throws IOException {
        HttpLogger.log(request);
        return nonSensitiveRequestRetryer.execute(request);
    }

    public SensitiveRequestRetryer getSensitiveRequestRetryer() {
        return sensitiveRequestRetryer;
    }

    public NonSensitiveRequestRetryer getNonSensitiveRequestRetryer() {
        return nonSensitiveRequestRetryer;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy