Package org.auto.comet.config

Examples of org.auto.comet.config.CometConfigMetadata


  public final void init() throws ServletException {
    getServletContext().log(
        "Initializing " + getClass().getSimpleName() + " '"
            + getServletName() + "'");
    super.init();
    CometConfigMetadata cometConfig = readCometConfig();
    initHandlerMapping(cometConfig);
    initSocketManager(cometConfig);
    if (this.logger.isInfoEnabled()) {
      this.logger.info("SocketDispatcherServlet '" + getServletName()
          + "': initialization started");
View Full Code Here


    if (StringUtils.isBlank(dispatcherConfigLocation)) {
      dispatcherConfigLocation = getDefaultDispatcherConfigLocation();
    }
    WebResourceScanMachine webResourceScanMachine = new WebResourceScanMachine(
        this.getServletContext());
    CometConfigMetadata cometConfig = new CometConfigMetadata();

    // 扫描将配置元数据放入cometConfig中
    webResourceScanMachine.scanLocations(dispatcherConfigLocation,
        new XmlConfigResourceHandler(cometConfig));
View Full Code Here

  /**
   * 读取document转化为配置
   *
   * */
  public CometConfigMetadata parse(Document document) {
    CometConfigMetadata config = new CometConfigMetadata();
    addConfig(config, document);
    return config;
  }
View Full Code Here

  /**
   * 读取多个document转化为配置
   *
   * */
  public CometConfigMetadata parse(Document[] documents) {
    CometConfigMetadata config = new CometConfigMetadata();
    for (Document document : documents) {
      addConfig(config, document);
    }
    return config;
  }
View Full Code Here

TOP

Related Classes of org.auto.comet.config.CometConfigMetadata

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.