|
Bug ID:
|
4149667
|
|
Votes
|
2
|
|
Synopsis
|
expose proxy host/port info
|
|
Category
|
java:classes_net
|
|
Reported Against
|
1.1.6
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4696512,
request for enhancement
|
|
Priority:
|
5-Very Low
|
|
Related Bugs
|
4696512
|
|
Submit Date
|
17-JUN-1998
|
|
Description
|
We would like to be able to access Activator Proxy Port and
IP address information within the JVM.
(Review ID: 33739)
======================================================================
The bug can probably be closed the correct way to access the proxy information
is
Properties props = new Properties (System.getProperties());
The Property can be queried with
String sz = props.getProperty("javaplugin.proxy.usebrowsersettings");
in order to figure out if the local properties are supposed to be used
and by
String sz = props.getProperty("javaplugin.proxy");
in order to get the current settings
xxxxx@xxxxx 1998-07-29
|
|
Work Around
|
Properties props = new Properties (System.getProperties());
The Property can be queried with
String sz = props.getProperty("javaplugin.proxy.usebrowsersettings");
in order to figure out if the local properties are supposed to be used
and by
String sz = props.getProperty("javaplugin.proxy");
in order to get the current settings
|
|
Evaluation
|
This is trickier than it sounds. Plug-in uses the browsers proxy
configuration settings and this may involve dynamically chosing the
target proxy based on the URL.
We'd need a new API at the java.net level if we were to implement this,
that would map a given URL to a proxy.
xxxxx@xxxxx 1998-07-30
|
|
Comments
|
Submitted On 15-SEP-2000
alexworden
How can an applet access these system properties when this
raises a security exception!?
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|