Examples of HostServiceConfig


Examples of org.tamacat.httpd.config.HostServiceConfig

    String componentsXML = serverConfig.getParam("components.file", "components.xml");
    HttpHandlerFactory factory = new DefaultHttpHandlerFactory(
        componentsXML, getClass().getClassLoader());

    HostRequestHandlerResolver hostResolver = new HostRequestHandlerResolver();
    HostServiceConfig hostConfig = new ServiceConfigParser(serverConfig).getConfig();
    for (String host : hostConfig.getHosts()) {
      HttpRequestHandlerRegistry registry = new HttpRequestHandlerRegistry();
      ServiceConfig serviceConfig = hostConfig.getServiceConfig(host);
      for (ServiceUrl serviceUrl : serviceConfig.getServiceUrlList()) {
        HttpHandler handler = factory.getHttpHandler(serviceUrl);
        if (handler != null) {
          LOG.info(serviceUrl.getPath() + " - " + handler.getClass().getName());
          registry.register(serviceUrl.getPath() + "*", handler);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.