Package java.util

Examples of java.util.Properties.containsKey()


  {
    try
    {
      deploy("jca-mockdriver.jar");
      Properties props = getConnectionProperties(EARXMLDS);
          assertTrue(props.containsKey("serverName") && props.containsKey("databaseName") && props.containsKey("portNumber"));
          assertTrue(deploymentUsesDataSource(EARXMLDS));       
         
          props.clear();
         
          props = getConnectionProperties(DRIVEREARXML);
View Full Code Here


          prop.load(ClassLoader.getSystemResourceAsStream(PROP_FILE_NAME));

          boolean searched = false;
          int i=1;
          while (!searched){
                       boolean found = prop.containsKey(PROP_NAME_PREFIX + i);
                       if (found){
                               String jsseProvider = prop.getProperty(PROP_NAME_PREFIX + i);
                               try {
                                       Class.forName(jsseProvider);
                                       jsseProviderName = jsseProvider;
View Full Code Here

                 * Extract some proxies from the properites, if the proxy is
                 * enabled
                 */
                if ("1".equals(props.get("network.proxy.type"))) { //$NON-NLS-1$ //$NON-NLS-2$
                    boolean isProfileActive = checkProfileActive(prefsJS);
                    if (props.containsKey("network.proxy.ftp")) { //$NON-NLS-1$
                        p = createProxyInfo("ftp=" + props.get("network.proxy.ftp") + ":" + props.get("network.proxy.ftp_port"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
                            "Firefox Profile [" + profileName + "]" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                        p.setActiveProfile(isProfileActive);
                        proxies.addElement(p);
                    }
View Full Code Here

                            "Firefox Profile [" + profileName + "]" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                        p.setActiveProfile(isProfileActive);
                        proxies.addElement(p);
                    }

                    if (props.containsKey("network.proxy.http")) { //$NON-NLS-1$
                        p = createProxyInfo("http=" + props.get("network.proxy.http") + ":" + props.get("network.proxy.http_port"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
                            "Firefox Profile [" + profileName + "]"); //$NON-NLS-1$ //$NON-NLS-2$
                        p.setActiveProfile(isProfileActive);
                        proxies.addElement(p);
                    }
View Full Code Here

                            "Firefox Profile [" + profileName + "]"); //$NON-NLS-1$ //$NON-NLS-2$
                        p.setActiveProfile(isProfileActive);
                        proxies.addElement(p);
                    }

                    if (props.containsKey("network.proxy.ssl")) { //$NON-NLS-1$
                        p = createProxyInfo("ssl=" + props.get("network.proxy.ssl") + ":" + props.get("network.proxy.ssl_port"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
                            "Firefox Profile [" + profileName + "]"); //$NON-NLS-1$ //$NON-NLS-2$
                        p.setActiveProfile(isProfileActive);
                        proxies.addElement(p);
                    }
View Full Code Here

                            "Firefox Profile [" + profileName + "]"); //$NON-NLS-1$ //$NON-NLS-2$
                        p.setActiveProfile(isProfileActive);
                        proxies.addElement(p);
                    }

                    if (props.containsKey("network.proxy.socks")) { //$NON-NLS-1$
                        p = createProxyInfo("socks=" + props.get("network.proxy.socks") + ":" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                                        + props.get("network.proxy.socks_port"), "Firefox Profile [" + profileName + "]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                        p.setActiveProfile(isProfileActive);
                        proxies.addElement(p);
                    }
View Full Code Here

                                        + props.get("network.proxy.socks_port"), "Firefox Profile [" + profileName + "]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                        p.setActiveProfile(isProfileActive);
                        proxies.addElement(p);
                    }

                    if (props.containsKey("network.proxy.no_proxies_on")) { //$NON-NLS-1$

                        StringTokenizer tokens = new StringTokenizer(props.getProperty("network.proxy.no_proxies_on"), ","); //$NON-NLS-1$ //$NON-NLS-2$

                        while (tokens.hasMoreTokens()) {
                            bypassAddr.addElement(((String) tokens.nextToken()).trim());
View Full Code Here

    private ExtensionStoreStatusManager() {
    }
   
    static ExtensionBundle.ExtensionBundleStatus getExtensionStatus(String bundleId) throws IOException {
        Properties properties = loadDisabledExtensionProperties();
        if(properties.containsKey(bundleId))
        {
            boolean isSystem = Boolean.valueOf((String)properties.get(bundleId));
            return isSystem ? ExtensionBundle.ExtensionBundleStatus.SYSTEM_DISABLED : ExtensionBundle.ExtensionBundleStatus.DISABLED;
        }
        return ExtensionBundle.ExtensionBundleStatus.ENABLED;
View Full Code Here

     * @param bundleId
     * @throws IOException
     */
    static void enableExtension(String bundleId) throws IOException {
        Properties disabledExtensions = loadDisabledExtensionProperties();
        if(!disabledExtensions.containsKey(bundleId))
            return;
       
        boolean isSystem = Boolean.valueOf((String)disabledExtensions.get(bundleId));
        if(isSystem)
            throw new IllegalArgumentException("System disabled extensions cannot be enabled");
View Full Code Here

     * @param bundleId
     * @throws IOException
     */
    static void removeExtension(String bundleId) throws IOException {
        Properties disabledExtensions = loadDisabledExtensionProperties();
        if(!disabledExtensions.containsKey(bundleId))
            return;       
        disabledExtensions.remove(bundleId);
        storeProperties(disabledExtensions);
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.