Package org.apache.harmony.rmi.common

Examples of org.apache.harmony.rmi.common.GetStringPropAction


    public static synchronized ActivationSystem getSystem() throws ActivationException {
        // rmi.log.21=---------- ActivationGroup.getSystem() ----------
        rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.21")); //$NON-NLS-1$
        try {
            if (current_AS == null) {
                String port = AccessController.doPrivileged(new GetStringPropAction(
                        "java.rmi.activation.port", //$NON-NLS-1$
                        ActivationSystem.SYSTEM_PORT + "")); //$NON-NLS-1$
                current_AS = (ActivationSystem) Naming.lookup("//:" + port //$NON-NLS-1$
                        + "/java.rmi.activation.ActivationSystem"); //$NON-NLS-1$
                // rmi.log.22=Activation System was got using Naming.lookup() at
View Full Code Here


        activationDebug = ((Boolean) AccessController
                .doPrivileged(new GetBooleanPropAction(
                        RMIProperties.ACTIVATION_DEBUGEXEC_PROP, false)))
                .booleanValue();
        monitorClassName = (String) AccessController
                .doPrivileged(new GetStringPropAction(
                        RMIProperties.ACTIVATION_MONITOR_CLASS_NAME_PROP,
                        RMIConstants.DEFAULT_ACTIVATION_MONITOR_CLASS_NAME));

        if (loggingDebug) {
            persistenceDebugLevel = RMILog.VERBOSE;
View Full Code Here

        try {
            if (current_AS == null) {

                String port = (String)AccessController.doPrivileged(
                        new GetStringPropAction("java.rmi.activation.port", //$NON-NLS-1$
                                                ActivationSystem.SYSTEM_PORT+"")); //$NON-NLS-1$

                current_AS = (ActivationSystem) Naming.lookup("//:" + port //$NON-NLS-1$
                        + "/java.rmi.activation.ActivationSystem"); //$NON-NLS-1$
                // rmi.log.22=Activation System was got using Naming.lookup() at port {0}
View Full Code Here

                /*
                 * Getting properties that affect group VM execution.
                 */
                String javaVmNameVal = (String) AccessController.doPrivileged(
                        new GetStringPropAction("java.vm.name")); //$NON-NLS-1$

                String javaHomeVal = (String) AccessController.doPrivileged(
                        new GetStringPropAction("java.home")); //$NON-NLS-1$

                String javaClassPathVal = (String) AccessController.doPrivileged(
                        new GetStringPropAction("java.class.path")); //$NON-NLS-1$

                String policy = (String) AccessController.doPrivileged(
                        new GetStringPropAction("java.security.policy")); //$NON-NLS-1$

                String bootClassPathVal = (String)
                        AccessController.doPrivileged(new GetStringPropAction(
                            (javaVmNameVal.equals("J9") //$NON-NLS-1$
                                           ? "org.apache.harmony.boot.class.path" //$NON-NLS-1$
                                            : "sun.boot.class.path"))); //$NON-NLS-1$

                String executable = new File(new File(
View Full Code Here

     *
     * @return  Proxy host name or <code>null</code> if proxy host is not set.
     */
    private static String getProxyHost() {
        String host = (String) AccessController.doPrivileged(
                                    new GetStringPropAction(PROXY_HOST_PROP));

        if ((host == null) || (host.length() < 1)) {
            return null;
        }

View Full Code Here

        activationDebug = ((Boolean) AccessController
                .doPrivileged(new GetBooleanPropAction(
                        RMIProperties.ACTIVATION_DEBUGEXEC_PROP, false)))
                .booleanValue();
        monitorClassName = (String) AccessController
                .doPrivileged(new GetStringPropAction(
                        RMIProperties.ACTIVATION_MONITOR_CLASS_NAME_PROP,
                        RMIConstants.DEFAULT_ACTIVATION_MONITOR_CLASS_NAME));

        if (loggingDebug) {
            persistenceDebugLevel = RMILog.VERBOSE;
View Full Code Here

                /*
                 * Getting properties that affect group VM execution.
                 */
                String javaVmNameVal = (String) AccessController.doPrivileged(
                        new GetStringPropAction("java.vm.name")); //$NON-NLS-1$

                String javaHomeVal = (String) AccessController.doPrivileged(
                        new GetStringPropAction("java.home")); //$NON-NLS-1$

                String javaClassPathVal = (String) AccessController.doPrivileged(
                        new GetStringPropAction("java.class.path")); //$NON-NLS-1$

                String policy = (String) AccessController.doPrivileged(
                        new GetStringPropAction("java.security.policy")); //$NON-NLS-1$

                String bootClassPathVal = (String)
                        AccessController.doPrivileged(new GetStringPropAction(
                            (javaVmNameVal.equals("J9") //$NON-NLS-1$
                                           ? "org.apache.harmony.boot.class.path" //$NON-NLS-1$
                                            : "sun.boot.class.path"))); //$NON-NLS-1$

                String executable = new File(new File(
View Full Code Here

                    + " HTTP/1.1" + EOLN //$NON-NLS-1$
                + "Cache-Control: no-cache" + EOLN + "Pragma: no-cache" + EOLN //$NON-NLS-1$ //$NON-NLS-2$
                + "Host: " + host + ':' + connectPort + EOLN //$NON-NLS-1$
                + "Proxy-Connection: keep-alive" + EOLN //$NON-NLS-1$
                + "User-Agent: DRL/" + (String) AccessController.doPrivileged( //$NON-NLS-1$
                        new GetStringPropAction("java.version")))) + EOLN); //$NON-NLS-1$

        out.writeBytes("Content-type: application/octet-stream" + EOLN //$NON-NLS-1$
                + CONTENT_LENGTH_SIGNATURE + ' ' + count + EOLN + EOLN);
        out.write(buf, 0, count);
        out.flush();
View Full Code Here

     *
     * @return  Proxy host name or <code>null</code> if proxy host is not set.
     */
    private static String getProxyHost() {
        String host = (String) AccessController.doPrivileged(
                                    new GetStringPropAction(PROXY_HOST_PROP));

        if ((host == null) || (host.length() < 1)) {
            return null;
        }

View Full Code Here

    public static synchronized ActivationSystem getSystem() throws ActivationException {
        // rmi.log.21=---------- ActivationGroup.getSystem() ----------
        rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.21")); //$NON-NLS-1$
        try {
            if (current_AS == null) {
                String port = AccessController.doPrivileged(new GetStringPropAction(
                        "java.rmi.activation.port", //$NON-NLS-1$
                        ActivationSystem.SYSTEM_PORT + "")); //$NON-NLS-1$
                current_AS = (ActivationSystem) Naming.lookup("//:" + port //$NON-NLS-1$
                        + "/java.rmi.activation.ActivationSystem"); //$NON-NLS-1$
                // rmi.log.22=Activation System was got using Naming.lookup() at
View Full Code Here

TOP

Related Classes of org.apache.harmony.rmi.common.GetStringPropAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.