Package com.google.feedserver.config

Examples of com.google.feedserver.config.FeedServerConfiguration


    String serverURI =
        req.getScheme() + "://" + req.getLocalAddr() + ":" + req.getServerPort()
            + req.getContextPath();

    // Set the serverURI for the request
    FeedServerConfiguration config = FeedServerConfiguration.getIntance();
    config.setSeverURI(serverURI);

    // Forward the request to other filters
    chain.doFilter(arg0, arg1);

  }
View Full Code Here


    String wrapperManagerClassName = config.getInitParameter("WRAPPER_MANAGER_CLASS");

    try {
      FeedConfigStore feedConfigStore =
          (FeedConfigStore) Class.forName(feedConfigStoreClass).newInstance();
      FeedServerConfiguration feedConfig = FeedServerConfiguration.createIntance(feedConfigStore);
      feedConfig.setAclValidator(new AllowAllAclValidator());
      feedConfig.setWrapperManagerClassName(wrapperManagerClassName);
      logger.info(" Created feed config : " + feedConfig + " with feed store : " + feedConfigStore);
    } catch (InstantiationException e) {
      logger.log(Level.SEVERE,
          "Problems encountered while creating an instance of  feed config store : "
              + feedConfigStoreClass, e);
View Full Code Here

      }
    }

    SampleFileSystemFeedConfigStore feedConfigStore = new SampleFileSystemFeedConfigStore();
    log.info("Created a file store");
    FeedServerConfiguration config = FeedServerConfiguration.createIntance(feedConfigStore);
    config.setAclValidator(new AllowAllAclValidator());
    config.initialize(new SimpleCommandLineParser(args));
    config.setWrapperManagerClassName("com.google.feedserver.samples.manager.XmlWrapperManager");
    // set up server
    Server server = new Server(config.getPort());
    Context context = new Context(server, "/", Context.SESSIONS);

    // Add the Abdera servlet
    ServletHolder servletHolder = new ServletHolder(new AbderaServlet());
    servletHolder.setInitParameter(ServiceManager.PROVIDER, FeedServerProvider.class.getName());
View Full Code Here

    commandLine.register(FlagConfig.class);
    commandLine.parse(args);

    SampleFileSystemFeedConfigStore feedConfigStore = new SampleFileSystemFeedConfigStore();
    logger.info("Created a file system config store");
    FeedServerConfiguration config = FeedServerConfiguration.createIntance(feedConfigStore);
    config.setAclValidator(new AllowAllAclValidator());
    config.initialize(new SimpleCommandLineParser(args));
    config.setWrapperManagerClassName(XmlWrapperManager.class.getName());
    // set up server
    Server server = new Server(config.getPort());
//    server.getConnectors()[0].setHost("localhost");  // listen on localhost:{port} only
    Context context = new Context(server, "/", Context.SESSIONS);

    // Add the Abdera servlet
    ServletHolder servletHolder = new ServletHolder(new GVizServlet());
View Full Code Here

TOP

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

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.