JDK-4149667 : expose proxy host/port info
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.1.6
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-06-17
  • Updated: 2003-08-06
  • Resolved: 2003-08-06
Related Reports
Duplicate :  
Description

Name: eyC74480			Date: 06/17/98


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

stefan.schneider@eng 1998-07-29

Comments
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
11-06-2004

SUGGESTED FIX 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
11-06-2004

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. graham.hamilton@Eng 1998-07-30
30-07-1998