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

org.mapfish.print.http.MfClientHttpRequestFactory Maven / Gradle / Ivy

There is a newer version: 3.22.0
Show newest version
package org.mapfish.print.http;

import org.springframework.http.client.ClientHttpRequest;
import org.springframework.http.client.ClientHttpRequestFactory;

/**
 * A http request factory that allows configuration callbacks to be registered, allowing low-level
 * customizations to the request object.
 */
public interface MfClientHttpRequestFactory extends ClientHttpRequestFactory {

    /**
     * Register a callback for config using a http request.
     *
     * @param callback the configuration callback
     */
    void register(RequestConfigurator callback);

    /**
     * A Callback allowing low-level customizations to an http request created by this factory.
     */
    interface RequestConfigurator {
        /**
         * Configure the request.
         *
         * @param request the request to configure
         */
        void configureRequest(ClientHttpRequest request);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy