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

org.webpieces.httpproxy.api.HttpProxyFactory Maven / Gradle / Ivy

Go to download

Someone forgot to fill this in. See http://stackoverflow.com/questions/38272550/how-to-fail-the-gradle-build-if-subproject-is-missing-a-property

The newest version!
package org.webpieces.httpproxy.api;

import org.webpieces.httpproxy.impl.HttpProxyFactoryImpl;

import com.google.inject.Module;

public abstract class HttpProxyFactory {
	
	public static final String IMPL_CLASS_KEY = "org.webpieces.HttpProxyFactory.impl.string";
	public static final String OVERRIDE_MODULE = "org.webpices.HttpProxy.modules.Module";
	
    protected HttpProxyFactory() {}

    public static HttpProxy createHttpProxy(String id, ProxyConfig config) {
    	return createHttpProxy(id, null, config);
    }
    
	public static HttpProxy createHttpProxy(String id, Module overrideModule, ProxyConfig config) {
		HttpProxyFactory factory = new HttpProxyFactoryImpl();
		HttpProxy proxyImpl = factory.createHttpProxyImpl(id, overrideModule, config);
		return proxyImpl;	
	}

	protected abstract HttpProxy createHttpProxyImpl(String id, Module overrideModule, ProxyConfig config);
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy