< prev index next >

src/java.desktop/share/classes/sun/applet/Main.java

Print this page




  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.applet;
  27 
  28 import java.io.BufferedInputStream;
  29 import java.io.File;
  30 import java.io.FileInputStream;
  31 import java.io.FileOutputStream;
  32 import java.io.IOException;
  33 import java.net.URL;
  34 import java.net.MalformedURLException;
  35 import java.util.Enumeration;
  36 import java.util.Properties;
  37 import java.util.Vector;
  38 import sun.net.www.ParseUtil;
  39 
  40 /**
  41  * The main entry point into AppletViewer.




  42  */

  43 public class Main {
  44     /**
  45      * The file which contains all of the AppletViewer specific properties.
  46      */
  47     static File theUserPropertiesFile;
  48 
  49     /**
  50      * The default key/value pairs for the required user-specific properties.
  51      */
  52     static final String [][] avDefaultUserProps = {
  53         // There's a bootstrapping problem here.  If we don't have a proxyHost,
  54         // then we will not be able to connect to a URL outside the firewall;
  55         // however, there's no way for us to set the proxyHost without starting
  56         // AppletViewer.  This problem existed before the re-write.
  57         {"http.proxyHost", ""},
  58         {"http.proxyPort", "80"},
  59         {"package.restrict.access.sun", "true"}
  60     };
  61 
  62     static {




  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.applet;
  27 
  28 import java.io.BufferedInputStream;
  29 import java.io.File;
  30 import java.io.FileInputStream;
  31 import java.io.FileOutputStream;
  32 import java.io.IOException;
  33 import java.net.URL;
  34 import java.net.MalformedURLException;
  35 import java.util.Enumeration;
  36 import java.util.Properties;
  37 import java.util.Vector;
  38 import sun.net.www.ParseUtil;
  39 
  40 /**
  41  * The main entry point into AppletViewer.
  42  *
  43  * @deprecated The Applet API is deprecated. See the
  44  * <a href="../../java/applet/package-summary.html"> java.applet package
  45  * documentation</a> for further information.
  46  */
  47 @Deprecated(since = "9")
  48 public class Main {
  49     /**
  50      * The file which contains all of the AppletViewer specific properties.
  51      */
  52     static File theUserPropertiesFile;
  53 
  54     /**
  55      * The default key/value pairs for the required user-specific properties.
  56      */
  57     static final String [][] avDefaultUserProps = {
  58         // There's a bootstrapping problem here.  If we don't have a proxyHost,
  59         // then we will not be able to connect to a URL outside the firewall;
  60         // however, there's no way for us to set the proxyHost without starting
  61         // AppletViewer.  This problem existed before the re-write.
  62         {"http.proxyHost", ""},
  63         {"http.proxyPort", "80"},
  64         {"package.restrict.access.sun", "true"}
  65     };
  66 
  67     static {


< prev index next >