Java Web Start and proxy settings

M

Maras

Hi to all,

i'm writig a java web start app and i'd like to know if my user has a proxy
server to connect the internet.
How can i read this setting?
I know, it should be saved in javaws.cfg (or deployment.properties) file,
i'd like to know your opinion if there is a better way to find out this
setting?
Or the one and only way is to check java web start version, than to find a
config file and finally to find a right section in this file to read if my
user uses a proxy server.

Thanks in advance for all opinions.
 
M

Maras

i'm writig a java web start app and i'd like to know if my user has a proxy
server to connect the internet.
How can i read this setting?
java.util.Properties sysProp = System.getProperties();
System.out.println(sysProp.getProperty("proxyHost"));
System.out.println(sysProp.getProperty("proxyPort"));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,083
Latest member
SylviaHarr

Latest Threads

Top