Java Code Examples for java.applet.Applet#getParameter()

The following examples show how to use java.applet.Applet#getParameter() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ORB.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * Creates a new <code>ORB</code> instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional <code>ORB</code> object each time it is called.
 * @param app the applet; may be <code>null</code>
 * @param props applet-specific properties; may be <code>null</code>
 * @return the newly-created ORB instance
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }
    orb.set_parameters(app, props);
    return orb;
}
 
Example 2
Source File: ORB.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new <code>ORB</code> instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional <code>ORB</code> object each time it is called.
 * @param app the applet; may be <code>null</code>
 * @param props applet-specific properties; may be <code>null</code>
 * @return the newly-created ORB instance
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }
    orb.set_parameters(app, props);
    return orb;
}
 
Example 3
Source File: ORB.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new <code>ORB</code> instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional <code>ORB</code> object each time it is called.
 * @param app the applet; may be <code>null</code>
 * @param props applet-specific properties; may be <code>null</code>
 * @return the newly-created ORB instance
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }
    orb.set_parameters(app, props);
    return orb;
}
 
Example 4
Source File: ORB.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
/**
 * Creates a new <code>ORB</code> instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional <code>ORB</code> object each time it is called.
 * @param app the applet; may be <code>null</code>
 * @param props applet-specific properties; may be <code>null</code>
 * @return the newly-created ORB instance
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }
    orb.set_parameters(app, props);
    return orb;
}
 
Example 5
Source File: ORB.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new <code>ORB</code> instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional <code>ORB</code> object each time it is called.
 * @param app the applet; may be <code>null</code>
 * @param props applet-specific properties; may be <code>null</code>
 * @return the newly-created ORB instance
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }
    orb.set_parameters(app, props);
    return orb;
}
 
Example 6
Source File: ORB.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new <code>ORB</code> instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional <code>ORB</code> object each time it is called.
 * @param app the applet; may be <code>null</code>
 * @param props applet-specific properties; may be <code>null</code>
 * @return the newly-created ORB instance
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }
    orb.set_parameters(app, props);
    return orb;
}
 
Example 7
Source File: ORB.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new {@code ORB} instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional {@code ORB} object each time it is called.
 * @param app the applet; may be {@code null}
 * @param props applet-specific properties; may be {@code null}
 * @return the newly-created ORB instance
 *
 * @implNote
 * When configured via the system property, or orb.properties,
 * the ORB is located via the thread context class loader.
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }
    orb.set_parameters(app, props);
    return orb;
}
 
Example 8
Source File: ORB.java    From Java8CN with Apache License 2.0 6 votes vote down vote up
/**
 * Creates a new <code>ORB</code> instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional <code>ORB</code> object each time it is called.
 * @param app the applet; may be <code>null</code>
 * @param props applet-specific properties; may be <code>null</code>
 * @return the newly-created ORB instance
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }
    orb.set_parameters(app, props);
    return orb;
}
 
Example 9
Source File: ORB.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new <code>ORB</code> instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional <code>ORB</code> object each time it is called.
 * @param app the applet; may be <code>null</code>
 * @param props applet-specific properties; may be <code>null</code>
 * @return the newly-created ORB instance
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }
    orb.set_parameters(app, props);
    return orb;
}
 
Example 10
Source File: ORB.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new <code>ORB</code> instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional <code>ORB</code> object each time it is called.
 * @param app the applet; may be <code>null</code>
 * @param props applet-specific properties; may be <code>null</code>
 * @return the newly-created ORB instance
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }

    orb.set_parameters(app, props);
    return orb;
}
 
Example 11
Source File: ORB.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new <code>ORB</code> instance for an applet.  This
 * method may be called from applets only and returns a new
 * fully-functional <code>ORB</code> object each time it is called.
 * @param app the applet; may be <code>null</code>
 * @param props applet-specific properties; may be <code>null</code>
 * @return the newly-created ORB instance
 */
public static ORB init(Applet app, Properties props) {
    String className;
    ORB orb;

    className = app.getParameter(ORBClassKey);
    if (className == null && props != null)
        className = props.getProperty(ORBClassKey);
    if (className == null)
        className = getSystemProperty(ORBClassKey);
    if (className == null)
        className = getPropertyFromFile(ORBClassKey);
    if ((className == null) ||
                (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
        orb = new com.sun.corba.se.impl.orb.ORBImpl();
    } else {
        orb = create_impl(className);
    }

    orb.set_parameters(app, props);
    return orb;
}