org.mapfish.print.http.MfClientHttpRequestFactory Maven / Gradle / Ivy
package org.mapfish.print.http;
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.
*
* @author Jesse on 9/3/2014.
*/
public interface MfClientHttpRequestFactory extends ClientHttpRequestFactory {
/**
* Register a callback for config using a http request.
*
* @param callback the configuration callback
*/
void register(final RequestConfigurator callback);
/**
* A Callback allowing low-level customizations to an http request created by this factory.
*/
public interface RequestConfigurator {
/**
* Configure the request.
*
* @param request the request to configure
*/
void configureRequest(final ConfigurableRequest request);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy