Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4502810

require method to obtain proxy for a given URL

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0, 1.4.0
    • deploy
    • beta3
    • x86
    • windows_nt



      Name: bsT130419 Date: 09/13/2001


      We have an applet that needs to make its own socket connections to an HTTP server while running in the Java plug-in. This applet needs to figure out what proxy it should use to make this connection. However, there is currently no way to determine this. We are requesting that one be added.
      A property containing the HTTP proxy to use would not be sufficient. This will not work for auto-proxy scripts. Instead, we need a method to get the proxy for a specific URL. The plug-in could then run the URL through the auto-proxy script to determine the result. If an auto-proxy were not in use, the method could simply return the manual proxy, taking into account any proxy overrides.

      We would like a method such as the following to be added to the plug-in:
      public static String getProxyForURL(URL u)
      The return value would be a string with the format "proxyhost:proxyport". If no proxy should be used for the given URL, then the return value should be null. If a proxy should be used, but no port is specified, the returned string should contain -1 for the port number.
      (Review ID: 131692)
      ======================================================================

            zgu Zhengyu Gu
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: