Package org.apache.abdera.protocol.server.provider.managed

Examples of org.apache.abdera.protocol.server.provider.managed.FeedConfiguration


  }

  @Override
  public void setUp() throws Exception {
    fileUtilMock = EasyMock.createMock(FileUtil.class);
    FeedConfiguration feedConfig = new FeedConfiguration(FEED_ID, null, null, null, serverConfig);
    FileAdapterConfig fileAdapterConfig = new FileAdapterConfig(ROOT_DIR);
    adapter = new FileAdapter(
        new XmlUtil(), fileUtilMock, new Abdera(), feedConfig, fileAdapterConfig);
  }
View Full Code Here


   * @param feedId The feed to get a collection adapter for
   * @param userId User email of per user feed; null if not per user feed
   */
  public AbstractManagedCollectionAdapter getAdapter(String feedId, String userId)
      throws Exception {
    FeedConfiguration feedConfiguration =
      ((PerNamespaceServerConfiguration) config).loadFeedConfiguration(feedId, userId);
    return createWrappedAdapter(feedConfiguration, abdera);
  }
View Full Code Here

    // as feedIds and get the feed configurations for the same
    for (String feedConfigFileName : feedConfigDir.list()) {
      if (feedConfigFileName.endsWith(FILE_EXTENSION)) {
        String feedId = feedConfigFileName.substring(0, feedConfigFileName.lastIndexOf("."));
        File feedConfigFile = getFeedConfigFilePath(namespace, feedId);
        FeedConfiguration feedConfiguration;
        try {
          feedConfiguration = getFeedConfiguration(namespace, feedId, feedConfigFile);
        } catch (FileNotFoundException e) {
          logger.log(Level.WARNING, "Unable to retrieve feed configuration for feedId : " + feedId
              + "  with the given namespace : " + namespace);
View Full Code Here

TOP

Related Classes of org.apache.abdera.protocol.server.provider.managed.FeedConfiguration

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.