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

com.github.timabilov.irequest.request.RequestConfig Maven / Gradle / Ivy

Go to download

Thinnest and painless HTTP Client (based on HttpURLConnection) provides you - wraps all functionality in soft manner with fluent-like interface.

There is a newer version: 1.0.3
Show newest version
package com.github.timabilov.irequest.request;

/**
 *
 */

public class RequestConfig {

//    GenericRequest genericRequest;
//
//
//
//    protected RequestConfig(){
//
//
//    }
//
//
//    protected void holdRequest(GenericRequest genericRequest){
//        this.genericRequest = genericRequest;
//    }
//
//    public RequestConfig globalProxyServer(String host, int port, boolean isSOCKS){
//
//       RequestConfig.setJVMProxyServer(host, port, isSOCKS);
//        return this;
//
//    }
//
//    public static RequestConfig setJVMProxyServer(String host, int port, boolean isSOCKS){
//
//        if (!isSOCKS) {
//            System.setProperty("http.proxyHost", host);
//            System.setProperty("http.proxyPort", port + "");
//            System.setProperty("https.proxyHost", host);
//            System.setProperty("https.proxyPort", port + "");
//        } else {
//
//            System.setProperty("socksProxyHost", host);
//            System.setProperty("SocksProxyPort", port + "");
//
//        }
//
//        return new RequestConfig();
//
//    }









}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy