Package io.avaje.jex
Interface Routing
-
public interface Routing
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRouting.EntryA routing entry.static interfaceRouting.GroupA group of routing entries prefixed by a common path.static interfaceRouting.ServiceAdds to the Routing.static classRouting.TypeThe type of route entry.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Routingafter(Handler handler)Add an after filter for all requests.Routingafter(String path, Handler handler)Add a after filter for the given path.List<Routing.Entry>all()Return all the registered handlers.Routingbefore(Handler handler)Add a before filter for all requests.Routingbefore(String path, Handler handler)Add a before filter for the given path.Routingget(Handler handler)Add a GET handler for "/".Routingget(Handler handler, Set<Role> permittedRoles)Add a GET handler for "/" with roles.Routingget(String path, Handler handler)Add a GET handler.Routingget(String path, Handler handler, Set<Role> permittedRoles)Add a GET handler with roles.Routingpath(String path, Routing.Group group)Add a group of route handlers with a common path prefix.Routingpost(Handler handler)Add a POST handler for "/".Routingpost(Handler handler, Set<Role> permittedRoles)Add a POST handler for "/" with roles.Routingpost(String path, Handler handler)Add a POST handler with roles.Routingpost(String path, Handler handler, Set<Role> permittedRoles)Add a POST handler with roles.
-
-
-
Method Detail
-
path
Routing path(String path, Routing.Group group)
Add a group of route handlers with a common path prefix.
-
get
Routing get(String path, Handler handler, Set<Role> permittedRoles)
Add a GET handler with roles.
-
post
Routing post(String path, Handler handler, Set<Role> permittedRoles)
Add a POST handler with roles.
-
post
Routing post(Handler handler, Set<Role> permittedRoles)
Add a POST handler for "/" with roles.
-
all
List<Routing.Entry> all()
Return all the registered handlers.
-
-