jira-client
jira-client copied to clipboard
JiraClient(HttpClient httpClient, String uri, ICredentials creds) method is not available in published 0.5 Version
Hi ,
I do not get a method to set proxy for JiraClient on 0.5 Version. Can you make sure this is to avaiable ? Please do the needfull ASAP.
@sarathimca I guess, in order to use a proxy server, we can pass a JVM argument to use proxy server for some hosts.
JAVA_FLAGS=-Dhttp.proxyHost=10.0.0.100 -Dhttp.proxyPort=8800
java ${JAVA_FLAGS} ...
Also, if you don't want to use proxy for some hosts (like localhost, 127.0.0.1, etc), then use the following in addition to the above.
-Dhttp.nonProxyHosts="localhost|127.0.0.1|10.*.*.*|*.foo.com|etc"
I got this answer from this thread in Stack Overflow: http://stackoverflow.com/a/120802
Please let me know how it goes.
@vivganes Thanks for your response. Yeah I tired this method and I passed arguments to JVM with Proxy Settings. But those things are not helps to me and I'm getting below stacktrace message
Passed Arguments: -Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=0000 (And I tried with nonProxyHosts also)
Console Message: Nov 28, 2016 7:23:21 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Malformed reply from SOCKS server Nov 28, 2016 7:23:21 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect INFO: Retrying connect Nov 28, 2016 7:28:21 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Malformed reply from SOCKS server Nov 28, 2016 7:28:21 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect INFO: Retrying connect