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

com.urbanairship.api.client.RequestClient Maven / Gradle / Ivy

There is a newer version: 9.3.0
Show newest version
package com.urbanairship.api.client;

import java.io.Closeable;
import java.util.Map;
import java.util.concurrent.Future;

/**
 * RequestClient must be implemented to create a custom HTTP client that is then used by UrbanAirshipClient to make requests.
 */
public interface RequestClient extends Closeable {
    /**
     * Executes the HTTP request.
     * @param request the Request.
     * @param callback the ResponseCallback.
     * @param headers a Map of the headers.
     * @param  type
     * @return The Future Response.
     */
    public  Future executeAsync(final Request request, final ResponseCallback callback, Map headers);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy