Package ru.decipher.mock.http

Source Code of ru.decipher.mock.http.MockHttpProviderWithProxySupportFactory

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());
    }
}
TOP

Related Classes of ru.decipher.mock.http.MockHttpProviderWithProxySupportFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.