Uses of Interface
spark.Route
Packages that use Route
-
Uses of Route in spark
Modifier and TypeClassDescriptionclass
A ResponseTransformerRouteImpl is built up by a path (for url-matching) and the implementation of the 'render' method.class
RouteImpl is created from a path, acceptType and Route.class
A TemplateViewRoute is built up by a path (for url-matching) and the implementation of the 'render' method.Modifier and TypeMethodDescriptionprivate static Route
Redirect.redirectRoute
(String toPath, Redirect.Status status) Modifier and TypeMethodDescription(package private) static void
Add a custom error page as a Route handlervoid
Map the route for HTTP CONNECT requestsvoid
Routable.connect
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP CONNECT requestsvoid
Map the route for HTTP CONNECT requestsvoid
Routable.connect
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP CONNECT requestsstatic void
Map the route for HTTP CONNECT requestsstatic void
Spark.connect
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP CONNECT requestsstatic void
Map the route for HTTP CONNECT requestsstatic void
Spark.connect
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP CONNECT requestsstatic ResponseTransformerRouteImpl
ResponseTransformerRouteImpl.create
(String path, String acceptType, Route route, ResponseTransformer transformer) static ResponseTransformerRouteImpl
ResponseTransformerRouteImpl.create
(String path, Route route, ResponseTransformer transformer) static RouteImpl
Wraps the route in RouteImplstatic RouteImpl
Wraps the route in RouteImplprivate RouteImpl
Routable.createRouteImpl
(String path, String acceptType, Route route) Create route implementation or use default response transformerprivate RouteImpl
Routable.createRouteImpl
(String path, Route route) Create route implementation or use default response transformervoid
Map the route for HTTP DELETE requestsvoid
Routable.delete
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP DELETE requestsvoid
Map the route for HTTP DELETE requestsvoid
Routable.delete
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP DELETE requestsstatic void
Map the route for HTTP DELETE requestsstatic void
Spark.delete
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP DELETE requestsstatic void
Map the route for HTTP DELETE requestsstatic void
Spark.delete
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP DELETE requestsvoid
Map the route for HTTP GET requestsvoid
Routable.get
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP GET requestsvoid
Map the route for HTTP GET requestsvoid
Routable.get
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP GET requestsstatic void
Map the route for HTTP GET requestsstatic void
Spark.get
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP GET requestsstatic void
Map the route for HTTP GET requestsstatic void
Spark.get
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP GET requestsvoid
Map the route for HTTP HEAD requestsvoid
Routable.head
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP HEAD requestsvoid
Map the route for HTTP HEAD requestsvoid
Routable.head
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP HEAD requestsstatic void
Map the route for HTTP HEAD requestsstatic void
Spark.head
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP HEAD requestsstatic void
Map the route for HTTP HEAD requestsstatic void
Spark.head
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP HEAD requestsvoid
Service.internalServerError
(Route route) Maps 500 internal server errors to the provided route.static void
Spark.internalServerError
(Route route) Maps 500 internal server errors to the provided route.void
Maps 404 errors to the provided route.static void
Maps 404 Not Found errors to the provided route.void
Map the route for HTTP OPTIONS requestsvoid
Routable.options
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP OPTIONS requestsvoid
Map the route for HTTP OPTIONS requestsvoid
Routable.options
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP OPTIONS requestsstatic void
Map the route for HTTP OPTIONS requestsstatic void
Spark.options
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP OPTIONS requestsstatic void
Map the route for HTTP OPTIONS requestsstatic void
Spark.options
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP OPTIONS requestsvoid
Map the route for HTTP PATCH requestsvoid
Routable.patch
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP PATCH requestsvoid
Map the route for HTTP PATCH requestsvoid
Routable.patch
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP PATCH requestsstatic void
Map the route for HTTP PATCH requestsstatic void
Spark.patch
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP PATCH requestsstatic void
Map the route for HTTP PATCH requestsstatic void
Spark.patch
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP PATCH requestsvoid
Map the route for HTTP POST requestsvoid
Routable.post
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP POST requestsvoid
Map the route for HTTP POST requestsvoid
Routable.post
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP POST requestsstatic void
Map the route for HTTP POST requestsstatic void
Spark.post
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP POST requestsstatic void
Map the route for HTTP POST requestsstatic void
Spark.post
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP POST requestsvoid
Map the route for HTTP PUT requestsvoid
Routable.put
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP PUT requestsvoid
Map the route for HTTP PUT requestsvoid
Routable.put
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP PUT requestsstatic void
Map the route for HTTP PUT requestsstatic void
Spark.put
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP PUT requestsstatic void
Map the route for HTTP PUT requestsstatic void
Spark.put
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP PUT requestsvoid
Map the route for HTTP TRACE requestsvoid
Routable.trace
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP TRACE requestsvoid
Map the route for HTTP TRACE requestsvoid
Routable.trace
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP TRACE requestsstatic void
Map the route for HTTP TRACE requestsstatic void
Spark.trace
(String path, String acceptType, Route route, ResponseTransformer transformer) Map the route for HTTP TRACE requestsstatic void
Map the route for HTTP TRACE requestsstatic void
Spark.trace
(String path, Route route, ResponseTransformer transformer) Map the route for HTTP TRACE requestsModifierConstructorDescriptionprotected
ResponseTransformerRouteImpl
(String path, String acceptType, Route route)