proxy problem,how to use diffent proxy in different connection

Hi,all

I,m writing a download file program,it use multiple thread to download multiple file,Possible one thread use direct connection,but another one use proxy connection.If i use System.getProperties().setProperty("socksProxyHost","192.168.119.100") ,then all connections in this JVM will use this proxy,How can i do?Please help me,thanks a lot.

Message was edited by:

fmzhang

[403 byte] By [fmzhanga] at [2007-10-2 22:14:38]
# 1
No body can help me? any advice will appreciate!
fmzhanga at 2007-7-14 1:31:35 > top of Java-index,Core,Core APIs...
# 2
java.net.URL.openConnection(java.net.Proxy proxy)ornew java.net.Socket(java.net.Proxy proxy)
ejpa at 2007-7-14 1:31:35 > top of Java-index,Core,Core APIs...
# 3
Thanks ejp But java.util.Proxy is in jdk1.5,and i can use jdk1.4 only,How can i do?thanks for any advice.
fmzhanga at 2007-7-14 1:31:35 > top of Java-index,Core,Core APIs...