com.github.timabilov.irequest.request.RequestConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irequest Show documentation
Show all versions of irequest Show documentation
Thinnest and painless HTTP Client (based on HttpURLConnection) provides you - wraps all functionality in soft manner with fluent-like interface.
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