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

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


    public Feed getFeed() throws Exception {
        SqlMapClient client = getSqlMapClient();
        String queryId = config.getFeedId() + "-get-feed";
        List<Map<String, Object>> rows = client.queryForList(queryId);
        Feed feed = createFeed();
        ServerConfiguration serverConfig = config.getServerConfiguration();
        if (serverConfig.getFeedNamespacePrefix() != null && serverConfig.getFeedNamespacePrefix().length() > 0) {
            feed.declareNS(serverConfig.getFeedNamespace(), serverConfig.getFeedNamespacePrefix());
        }
        for (Map<String, Object> row : rows)
            createEntryFromRow(feed, row);
        return feed;
    }
View Full Code Here


  public Feed getFeed() throws Exception {
    SqlMapClient client = getSqlMapClient();
    String queryId = config.getFeedId() + "-get-feed";
    List<Map<String, Object>> rows = client.queryForList(queryId);
    Feed feed = createFeed();
    ServerConfiguration serverConfig = config.getServerConfiguration();
    if (serverConfig.getFeedNamespacePrefix() != null && serverConfig.getFeedNamespacePrefix().length() > 0) {
      feed.declareNS(serverConfig.getFeedNamespace(), serverConfig.getFeedNamespacePrefix());
    }
    for (Map<String, Object> row : rows)
      createEntryFromRow(feed,row);
    return feed;
  }
View Full Code Here

    } catch (SQLException e) {
      throw new FeedServerAdapterException(
          FeedServerAdapterException.Reason.ERROR_EXECUTING_ADAPTER_REQUEST, e.getMessage());
    }
    Feed feed = createFeed();
    ServerConfiguration serverConfig = config.getServerConfiguration();
    if (serverConfig.getFeedNamespacePrefix() != null
        && serverConfig.getFeedNamespacePrefix().length() > 0) {
      feed.declareNS(serverConfig.getFeedNamespace(), serverConfig.getFeedNamespacePrefix());
    }
    for (Map<String, Object> row : rows) {
      createEntryFromProperties(feed, row);
    }
    return feed;
View Full Code Here

  public void setWrapperConfig(String wrapperConfig) {
    this.wrapperConfig = wrapperConfig;
  }

  public FeedConfigStore getConfigStore() {
    ServerConfiguration serverConfig =
        getConfiguration().getAdapterConfiguration().getServerConfiguration();
    if (serverConfig instanceof PerNamespaceServerConfiguration) {
      PerNamespaceServerConfiguration namespaceServerConfiguration =
          (PerNamespaceServerConfiguration) serverConfig;
      return namespaceServerConfiguration.getGolbalServerConfiguration().getFeedConfigStore();
View Full Code Here

TOP

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

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.