Package net.infopeers.restrant.engine.parser

Examples of net.infopeers.restrant.engine.parser.CompositeUrlParserArranger


    }

  }

  private CompositeUrlParserArranger createParserArranger(ServletConfig config) {
    CompositeUrlParserArranger arranger = new CompositeUrlParserArranger();

    String routeClass = config.getInitParameter(ROUTE_CLASS_LABEL);
    if (routeClass != null) {
      try {
        Class<?> cls = Class.forName(routeClass);
        RouteClassUrlParserArranger cdarranger = new RouteClassUrlParserArranger(
            phFormatter, cls);
        arranger.add(cdarranger);
      } catch (ClassNotFoundException e) {
        throw new RuntimeException(
            "document(web.xml)/web-app/servlet/init-paramに"
                + ROUTE_CLASS_LABEL + "で指定されたクラスが見つかりません。", e);
      }
    }

    arranger.add(new ServletConfigUrlParserArranger(phFormatter, config));
    return arranger;
  }
View Full Code Here

TOP

Related Classes of net.infopeers.restrant.engine.parser.CompositeUrlParserArranger

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.