}
}
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;
}