package ru.decipher.mock.http;
import ru.decipher.extraction.http.impl.BasicHttpRequest;
import ru.decipher.provider.http.HttpProviderWithProxySupportFactory;
import ru.decipher.proxy.impl.HttpProxyConfig;
import ru.decipher.proxy.impl.LocalhostProxyConfig;
/**
* User: Alexander Paderin (apocarteres@gmail.com)
* Date: 10/21/13
* Time: 2:06 PM
*/
public class MockHttpProviderWithProxySupportFactory implements HttpProviderWithProxySupportFactory<BasicHttpRequest> {
@Override
public MockHttpProvider create(HttpProxyConfig proxyConfig) {
return new MockHttpProvider(proxyConfig);
}
@Override
public MockHttpProvider create() {
return new MockHttpProvider(new LocalhostProxyConfig());
}
}