• Post Reply Bookmark Topic Watch Topic
  • New Topic

to get proxy address

 
Anu Pillai
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Is there any api in jdk1.4 to get the proxy address..
Regards
Anu
 
Amit Kumargupta
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In jdk 1.6 one method is there


public SocketAddress address()
Returns the socket address of the proxy, or null if its a direct connection.

Returns:
a SocketAddress representing the socket end point of the proxy
 
Shoumin Li
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
maybe you can use the com.sun.java.browser.net.ProxyInfo
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!