/** * factory method * * @param path the path * @param route the route * @param engine the engine * @return the wrapper template view route */ public static TemplateViewRouteImpl create(String path, TemplateViewRoute route, TemplateEngine engine) { return create(path, Service.DEFAULT_ACCEPT_TYPE, route, engine); }
/** * Map the route for HTTP CONNECT requests * * @param path the path * @param route The route * @param engine the template engine */ public void connect(String path, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.connect, TemplateViewRouteImpl.create(path, route, engine)); }
/** * Map the route for HTTP POST requests * * @param path the path * @param route The route * @param engine the template engine */ public void post(String path, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.post, TemplateViewRouteImpl.create(path, route, engine)); }
/** * Map the route for HTTP DELETE requests * * @param path the path * @param route The route * @param engine the template engine */ public void delete(String path, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.delete, TemplateViewRouteImpl.create(path, route, engine)); }
/** * Map the route for HTTP HEAD requests * * @param path the path * @param route The route * @param engine the template engine */ public void head(String path, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.head, TemplateViewRouteImpl.create(path, route, engine)); }
/** * Map the route for HTTP GET requests * * @param path the path * @param route The route * @param engine the template engine */ public void get(String path, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.get, TemplateViewRouteImpl.create(path, route, engine)); }
/** * Map the route for HTTP PUT requests * * @param path the path * @param route The route * @param engine the template engine */ public void put(String path, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.put, TemplateViewRouteImpl.create(path, route, engine)); }
/** * Map the route for HTTP OPTIONS requests * * @param path the path * @param route The route * @param engine the template engine */ public void options(String path, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.options, TemplateViewRouteImpl.create(path, route, engine)); }
/** * Map the route for HTTP TRACE requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public void trace(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.trace, TemplateViewRouteImpl.create(path, acceptType, route, engine)); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param route The route * @param engine the template engine */ public void patch(String path, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.patch, TemplateViewRouteImpl.create(path, route, engine)); }
/** * Map the route for HTTP TRACE requests * * @param path the path * @param route The route * @param engine the template engine */ public void trace(String path, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.trace, TemplateViewRouteImpl.create(path, route, engine)); }
/** * Map the route for HTTP PATCH requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public void patch(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.patch, TemplateViewRouteImpl.create(path, acceptType, route, engine)); }
/** * Map the route for HTTP DELETE requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public void delete(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.delete, TemplateViewRouteImpl.create(path, acceptType, route, engine)); }
/** * Map the route for HTTP HEAD requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public void head(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.head, TemplateViewRouteImpl.create(path, acceptType, route, engine)); }
/** * Map the route for HTTP POST requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public void post(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.post, TemplateViewRouteImpl.create(path, acceptType, route, engine)); }
/** * Map the route for HTTP CONNECT requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public void connect(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.connect, TemplateViewRouteImpl.create(path, acceptType, route, engine)); }
/** * Map the route for HTTP OPTIONS requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public void options(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.options, TemplateViewRouteImpl.create(path, acceptType, route, engine)); }
/** * Map the route for HTTP GET requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public void get(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.get, TemplateViewRouteImpl.create(path, acceptType, route, engine)); }
/** * Map the route for HTTP PUT requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public void put(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.put, TemplateViewRouteImpl.create(path, acceptType, route, engine)); }
/** * Map the route for HTTP PUT requests * * @param path the path * @param route The route * @param engine the template engine */ public void put(String path, TemplateViewRoute route, TemplateEngine engine) { addRoute(HttpMethod.put, TemplateViewRouteImpl.create(path, route, engine)); }