protected final void setHttpProxySocks(boolean isSocksProxy) { httpConf = new MyHttpClientConfiguration(httpConf.getHttpProxyHost() , httpConf.getHttpProxyUser() , httpConf.getHttpProxyPassword() , httpConf.getHttpProxyPort() , isSocksProxy , httpConf.getHttpConnectionTimeout() , httpConf.getHttpReadTimeout() , httpConf.isPrettyDebugEnabled(), httpConf.isGZIPEnabled() ); }
protected final void setHttpProxyUser(String proxyUser) { httpConf = new MyHttpClientConfiguration(httpConf.getHttpProxyHost() , proxyUser , httpConf.getHttpProxyPassword() , httpConf.getHttpProxyPort() , httpConf.isHttpProxySocks() , httpConf.getHttpConnectionTimeout() , httpConf.getHttpReadTimeout() , httpConf.isPrettyDebugEnabled(), httpConf.isGZIPEnabled() ); }
protected final void setGZIPEnabled(boolean gzipEnabled) { httpConf = new MyHttpClientConfiguration(httpConf.getHttpProxyHost() , httpConf.getHttpProxyUser() , httpConf.getHttpProxyPassword() , httpConf.getHttpProxyPort() , httpConf.isHttpProxySocks() , httpConf.getHttpConnectionTimeout() , httpConf.getHttpReadTimeout() , httpConf.isPrettyDebugEnabled(), gzipEnabled ); }
protected final void setPrettyDebugEnabled(boolean prettyDebug) { httpConf = new MyHttpClientConfiguration(httpConf.getHttpProxyHost() , httpConf.getHttpProxyUser() , httpConf.getHttpProxyPassword() , httpConf.getHttpProxyPort() , httpConf.isHttpProxySocks() , httpConf.getHttpConnectionTimeout() , httpConf.getHttpReadTimeout() , prettyDebug, httpConf.isGZIPEnabled() ); }
protected ConfigurationBase() { httpConf = new MyHttpClientConfiguration(null // proxy host , null // proxy user , null // proxy password , -1 // proxy port , false // proxy socks , 20000 // connection timeout , 120000 // read timeout , false // pretty debug , true // gzip enabled ); }
protected final void setHttpReadTimeout(int readTimeout) { httpConf = new MyHttpClientConfiguration(httpConf.getHttpProxyHost() , httpConf.getHttpProxyUser() , httpConf.getHttpProxyPassword() , httpConf.getHttpProxyPort() , httpConf.isHttpProxySocks() , httpConf.getHttpConnectionTimeout() , readTimeout , httpConf.isPrettyDebugEnabled(), httpConf.isGZIPEnabled() ); }
protected final void setHttpConnectionTimeout(int connectionTimeout) { httpConf = new MyHttpClientConfiguration(httpConf.getHttpProxyHost() , httpConf.getHttpProxyUser() , httpConf.getHttpProxyPassword() , httpConf.getHttpProxyPort() , httpConf.isHttpProxySocks() , connectionTimeout , httpConf.getHttpReadTimeout() , httpConf.isPrettyDebugEnabled(), httpConf.isGZIPEnabled() ); }
protected final void setHttpProxyPort(int proxyPort) { httpConf = new MyHttpClientConfiguration(httpConf.getHttpProxyHost() , httpConf.getHttpProxyUser() , httpConf.getHttpProxyPassword() , proxyPort , httpConf.isHttpProxySocks() , httpConf.getHttpConnectionTimeout() , httpConf.getHttpReadTimeout() , httpConf.isPrettyDebugEnabled(), httpConf.isGZIPEnabled() ); }
protected final void setHttpProxyPassword(String proxyPassword) { httpConf = new MyHttpClientConfiguration(httpConf.getHttpProxyHost() , httpConf.getHttpProxyUser() , proxyPassword , httpConf.getHttpProxyPort() , httpConf.isHttpProxySocks() , httpConf.getHttpConnectionTimeout() , httpConf.getHttpReadTimeout() , httpConf.isPrettyDebugEnabled(), httpConf.isGZIPEnabled() ); }
protected final void setHttpProxyHost(String proxyHost) { httpConf = new MyHttpClientConfiguration(proxyHost , httpConf.getHttpProxyUser() , httpConf.getHttpProxyPassword() , httpConf.getHttpProxyPort() , httpConf.isHttpProxySocks() , httpConf.getHttpConnectionTimeout() , httpConf.getHttpReadTimeout() , httpConf.isPrettyDebugEnabled(), httpConf.isGZIPEnabled() ); }