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

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


    runnableArgs.put("service.datasets", serializedDatasets);

    for (HttpServiceHandler handler : handlers) {
      handlerNames.add(handler.getClass().getName());
      // call the configure method of the HTTP Handler
      DefaultHttpServiceHandlerConfigurer configurer = new DefaultHttpServiceHandlerConfigurer(handler);
      handler.configure(configurer);
      specs.add(configurer.createHttpServiceSpec());
    }
    runnableArgs.put(CONF_HANDLER, GSON.toJson(handlerNames));
    runnableArgs.put(CONF_SPEC, GSON.toJson(specs));
    runnableArgs.put(CONF_APP, appName);
    return TwillRunnableSpecification.Builder.with()
View Full Code Here

TOP

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

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.