Package ratpack.http.internal

Examples of ratpack.http.internal.ContentNegotiationHandler


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


  public void byContent(Closure<?> closure) throws Exception {
    Map<String, Handler> handlers = new LinkedHashMap<>(2);
    ByContentSpec delegate = new DefaultByContentSpec(handlers);
    GroovyByContentSpec spec = new DefaultGroovyByContentSpec(delegate);
    ClosureUtil.configureDelegateFirst(spec, closure);
    new ContentNegotiationHandler(handlers).handle(this);
  }
View Full Code Here

TOP

Related Classes of ratpack.http.internal.ContentNegotiationHandler

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.