Package com.google.feedserver.configstore

Examples of com.google.feedserver.configstore.FeedConfigStoreException


        new File(
            new StringBuilder(FEED_CONFIGURATION_PATH.replace(namespacePlaceHolder, namespace))
                .toString());
    if (!feedConfigDir.exists()) {
      if (!feedConfigDir.mkdir()) {
        throw new FeedConfigStoreException(Reason.INTERNAL_ERROR,
            "Unable to create the feed configuration directory at the path : "
                + feedConfigDir.getAbsolutePath());
      }
    }
  }
View Full Code Here


    // Check if the namespace directory exists and create it if it does not
    // exist
    if (!namespaceDirectory.isDirectory()) {
      if (!namespaceDirectory.mkdir()) {
        throw new FeedConfigStoreException(Reason.INTERNAL_ERROR,
            "Unable to create namespace directory at the given path : "
                + namespaceDirectory.getAbsolutePath());
      }
    }
  }
View Full Code Here

    File adapterConfigDir =
        new File(new StringBuilder(ADAPTER_CONFIGURATION_PATH.replace(namespacePlaceHolder,
            namespace)).toString());
    if (!adapterConfigDir.exists()) {
      if (!adapterConfigDir.mkdir()) {
        throw new FeedConfigStoreException(Reason.INTERNAL_ERROR,
            "Unable to create the adapter configuration directory at the path : "
                + adapterConfigDir.getAbsolutePath());
      }
    }
  }
View Full Code Here

      NamespacedAdapterConfiguration adapterConfiguration =
          new NamespacedAdapterConfiguration(adapterConfigProperties,
              getNamesapceServerConfiguration(namespace));
      return adapterConfiguration;
    } catch (FileNotFoundException e) {
      throw new FeedConfigStoreException(Reason.ADAPTER_CONFIG_DOES_NOT_EXIST,
          "No adapter configuration exists with the given name : " + adapterName);
    } catch (IOException e) {
      throw new FeedConfigStoreException(Reason.INTERNAL_ERROR,
          "Problems encountered while retrieving the adapter configuration with the given name : "
              + adapterName);
    }
  }
View Full Code Here

      return adapterProperties;
    } catch (IOException e) {
      logger.log(Level.WARNING, "Problems encountered while retrieving the adapter with name : "
          + adapterName, e);
      throw new FeedConfigStoreException(Reason.INTERNAL_ERROR,
          "Problems encountered while retrieving the adapter with name : " + adapterName);
    }
  }
View Full Code Here

          XmlMixinConfiguration mixin = new XmlMixinConfiguration(mixinContent.trim());
          mixinConfigs.addAll(processMixinConfig(namespace, mixin));
        } catch (IOException e) {
          logger.log(Level.WARNING, "Problems encountered while loading the mixin configuration"
              + mixinFileName, e);
          throw new FeedConfigStoreException(Reason.INTERNAL_ERROR,
              "Problems encountered while loading the mixin configuration : " + mixinFileName);
        }
      }
    } else {
      XmlMixinConfiguration mixin = new XmlMixinConfiguration(mixins.trim());
View Full Code Here

    // Check that the feed configuration directory exists
    if (!feedConfigDir.isDirectory()) {
      logger.log(Level.SEVERE,
          "There exists no feed configuration directory for the given namespace : " + namespace);
      throw new FeedConfigStoreException(Reason.INTERNAL_ERROR,
          "There is no feed configuration directory for the given namespace : " + namespace);
    }

    return feedConfigDir;
  }
View Full Code Here

    File namespaceDirectory = new File(pathTonamespaceDirectory);

    // Check that namespace directory exists
    if (!namespaceDirectory.isDirectory()) {
      logger.log(Level.SEVERE, "There exists no directory for the given namespace : " + namespace);
      throw new FeedConfigStoreException(Reason.DOMAIN_NOT_FOUND, "Invalid namespace : "
          + namespace);
    }

    return namespaceDirectory;
  }
View Full Code Here

    // Check that the feed configuration directory exists
    if (!adapterConfigDir.isDirectory()) {
      logger.log(Level.SEVERE,
          "There exists no adapter configuration directory for the given namespace : " + namespace);
      throw new FeedConfigStoreException(Reason.INTERNAL_ERROR,
          "There is no adapter configuration directory for the given namespace : " + namespace);
    }

    return adapterConfigDir;
  }
View Full Code Here

TOP

Related Classes of com.google.feedserver.configstore.FeedConfigStoreException

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.