Package ratpack.http.internal

Examples of ratpack.http.internal.MultiMethodHandler


  public void byMethod(Action<? super ByMethodSpec> action) throws Exception {
    Map<String, Handler> handlers = new LinkedHashMap<>(2);
    DefaultByMethodSpec spec = new DefaultByMethodSpec(handlers);
    action.execute(spec);
    new MultiMethodHandler(handlers).handle(this);
  }
View Full Code Here


  public void byMethod(Closure<?> closure) throws Exception {
    Map<String, Handler> handlers = new LinkedHashMap<>(2);
    ByMethodSpec delegate = new DefaultByMethodSpec(handlers);
    GroovyByMethodSpec spec = new DefaultGroovyByMethodSpec(delegate);
    ClosureUtil.configureDelegateFirst(spec, closure);
    new MultiMethodHandler(handlers).handle(this);
  }
View Full Code Here

TOP

Related Classes of ratpack.http.internal.MultiMethodHandler

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.