public interface Routing
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA routing entry.static interfaceA group of routing entries prefixed by a common path.static interfaceAdds to the Routing.static enumThe type of route entry. -
Method Summary
Modifier and TypeMethodDescriptionadd(Routing.Service routes) Add the routes provided by the Routing Service.addAll(Collection<Routing.Service> routes) Add all the routes provided by the Routing Services.Add an after filter for all requests.Add a after filter for the given path.all()Return all the registered handlers.Add a before filter for all requests.Add a before filter for the given path.Add a DELETE handler for "/".Add a DELETE handler.Add a GET handler for "/".Add a GET handler.Add a HEAD handler for "/".Add a HEAD handler.Add a PATCH handler for "/".Add a PATCH handler.path(String path, Routing.Group group) Add a group of route handlers with a common path prefix.Add a POST handler for "/".Add a POST handler.Add a PUT handler for "/".Add a PUT handler.Add a TRACE handler for "/".Add a TRACE handler.Specify permittedRoles for the last added handler using varargs.Specify permittedRoles for the last added handler.
-
Method Details
-
add
Add the routes provided by the Routing Service. -
addAll
Add all the routes provided by the Routing Services. -
withRoles
Specify permittedRoles for the last added handler.routing .get("/customers", getHandler).withRoles(readRoles) .post("/customers", postHandler).withRoles(writeRoles) ...- Parameters:
permittedRoles- The permitted roles required for the last handler
-
withRoles
Specify permittedRoles for the last added handler using varargs.routing .get("/customers", getHandler).withRoles(ADMIN, USER) .post("/customers", postHandler).withRoles(ADMIN) ...- Parameters:
permittedRoles- The permitted roles required for the last handler
-
path
Add a group of route handlers with a common path prefix. -
head
Add a HEAD handler. -
head
Add a HEAD handler for "/". -
get
Add a GET handler. -
get
Add a GET handler for "/". -
post
Add a POST handler. -
post
Add a POST handler for "/". -
put
Add a PUT handler. -
put
Add a PUT handler for "/". -
patch
Add a PATCH handler. -
patch
Add a PATCH handler for "/". -
delete
Add a DELETE handler. -
delete
Add a DELETE handler for "/". -
trace
Add a TRACE handler. -
trace
Add a TRACE handler for "/". -
before
Add a before filter for the given path. -
before
Add a before filter for all requests. -
after
Add a after filter for the given path. -
after
Add an after filter for all requests. -
all
List<Routing.Entry> all()Return all the registered handlers.
-