Package co.cask.cdap.internal.app.runtime.service.http

Examples of co.cask.cdap.internal.app.runtime.service.http.HttpHandlerFactory


   */
  private NettyHttpService createNettyHttpService(String host,
                                                  Iterable<HandlerDelegatorContext> delegatorContexts,
                                                  String pathPrefix) {
    // Create HttpHandlers which delegate to the HttpServiceHandlers
    HttpHandlerFactory factory = new HttpHandlerFactory(pathPrefix);
    List<HttpHandler> nettyHttpHandlers = Lists.newArrayList();
    // get the runtime args from the twill context
    for (HandlerDelegatorContext context : delegatorContexts) {
      nettyHttpHandlers.add(factory.createHttpHandler(context.getHandlerType(), context));
    }

    return NettyHttpService.builder().setHost(host)
      .setPort(0)
      .addHttpHandlers(nettyHttpHandlers)
View Full Code Here

TOP

Related Classes of co.cask.cdap.internal.app.runtime.service.http.HttpHandlerFactory

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.