Package org.fcrepo.server.config

Examples of org.fcrepo.server.config.ServerConfigurationParser


        return choiceIndex;
    }

    private static ServerConfiguration getServerConfig(File serverDir,
            String profile) throws IOException {
        ServerConfigurationParser parser =
                new ServerConfigurationParser(new FileInputStream(new File(
                        serverDir, "config/fedora.fcfg")));
        ServerConfiguration serverConfig = parser.parse();
        // set all the values according to the profile, if specified
        if (profile != null) {
            int c = setValuesForProfile(serverConfig, profile);

            c +=
View Full Code Here


          "org.fcrepo.server.security.xacml.pdp.decorator.PolicyIndexInvocationHandler");
    }

    try {
      FileInputStream fis = new FileInputStream(fcfgBase);
      ServerConfiguration config = new ServerConfigurationParser(fis)
          .parse();
      config.applyProperties(props);

      // If using akubra-fs, set the class of the module and clear params.
      if (usingAkubra()) {
View Full Code Here

        }
    }

    public static ServerConfiguration getServerConfiguration() {
        try {
            return new ServerConfigurationParser(new FileInputStream(FCFG))
                    .parse();
        } catch (Exception e) {
            fail(e.getMessage());
            return null;
        }
View Full Code Here

        if (fedoraHome == null) {
            logger.warn("FEDORA_HOME not set; unable to initialize");
        } else {
            File fcfgFile = new File(fedoraHome, "server/config/fedora.fcfg");
            try {
                return new ServerConfigurationParser(new FileInputStream(fcfgFile))
                                .parse();
            } catch (IOException e) {
                logger.warn("Unable to read server configuration from "
                        + fcfgFile.getPath(), e);
            }
View Full Code Here

    public static ServerConfiguration getConfig() {
        try {
            InputStream fcfg = new FileInputStream(
                    new File(Constants.FEDORA_HOME,
                             "server/config/fedora.fcfg"));
            ServerConfigurationParser parser =
                new ServerConfigurationParser(fcfg);
            return parser.parse();
        } catch (IOException e) {
            throw new FaultException("Error loading server configuration",
                                     e);
        }
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.server.config.ServerConfigurationParser

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.