Package cgl.shindig.config

Examples of cgl.shindig.config.ConfigurationException


        if (isLocal()) {
            return new LocalAuthContext(config, cbHandler, subject);
        } else if (isJAAS()) {
            return new JAASAuthContext(appName, cbHandler, subject);
        } else {
            throw new ConfigurationException("No Login-Configuration");
        }
    }
View Full Code Here


    }

    public static PortalConfig create(File xml, File dir)
            throws ConfigurationException {
        if (!dir.isDirectory()) {
            throw new ConfigurationException(
                    "directory " + dir + " does not exist");
        }

        if (!xml.isFile()) {
            throw new ConfigurationException(
                    "configuration file " + xml + " does not exist");
        }

        try {
            return create(new FileInputStream(xml), dir.getPath());
        } catch(FileNotFoundException ex) {
            throw new ConfigurationException("File " + xml +
                " cannot be found. ", ex);
        }
    }
View Full Code Here

            throws ConfigurationException {
        // URI uri = new File(file).toURI();
        try {
            return create(new FileInputStream(file), home);
        } catch(FileNotFoundException ex) {
            throw new ConfigurationException("File " + file +
                " cannot be found. ", ex);
        }
    }
View Full Code Here

          PortalConfigParser parser = new PortalConfigParser(variables);
          PortalConfig config = parser.parsePortalConfig(input);
          config.init();
          return config;
      } catch(Exception ex) {
          throw new ConfigurationException("apache common configuration exception",
              ex);
      }
    }
View Full Code Here

TOP

Related Classes of cgl.shindig.config.ConfigurationException

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.