Package com.google.feedserver.config

Examples of com.google.feedserver.config.PerNamespaceServerConfiguration


   *
   * @param request {@link RequestContext} to determine the namespace from
   */
  @Override
  protected PerNamespaceServerConfiguration getServerConfiguration(RequestContext request) {
    return new PerNamespaceServerConfiguration(globalServerConfiguration, request.getTarget()
        .getParameter(AbstractManagedCollectionAdapter.PARAM_NAMESPACE));
  }
View Full Code Here


   *
   * @param namespace The namespace
   * @return The namespace configuration
   */
  private PerNamespaceServerConfiguration getNamesapceServerConfiguration(String namespace) {
    return new PerNamespaceServerConfiguration(FeedServerConfiguration.getIntance(), namespace);
  }
View Full Code Here

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

  public void setup(boolean addDataToFeedStore) throws Exception {
    abdera = new Abdera();
    fileSystemFeedConfigStore = new SampleFileSystemFeedConfigStore();
    globalServerConfig = FeedServerConfiguration.createIntance(fileSystemFeedConfigStore);
    globalServerConfig.setWrapperManagerClassName(XmlWrapperManager.class.getName());
    serverConfig = new PerNamespaceServerConfiguration(globalServerConfig, DOMAIN_NAME);
    adapterConfigWithNoWrappers =
        new NamespacedAdapterConfiguration(adapterConfigWithNoWrappersMap, serverConfig);

    MixinConfiguration mc1 = new MapMixinConfiguration(TEST_WRAPPER1);
    mc1.setWrapperName(WRAPPER_CLASS);
View Full Code Here

TOP

Related Classes of com.google.feedserver.config.PerNamespaceServerConfiguration

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.