Package com.morpheusdata.web
Class Route
java.lang.Object
com.morpheusdata.web.Route
A Route is a definition of how to handle incoming requests with a plugin controller.
url it handles (eg: /foo/bar)
method in controller to call for given url (eg index)
permissions to be checked
-
Field Summary
Modifier and TypeFieldDescriptionmethod in controller to call for given url (eg index)permissions to be checkedthe path it handles (eg: /foo/bar) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Route
build
(String url, String method, Permission permission) Helper to build a Route with just one permission to check.static Route
build
(String url, String method, List<Permission> permissions) Helper to build a Route with a list of permissions to check.
-
Field Details
-
url
the path it handles (eg: /foo/bar) -
method
method in controller to call for given url (eg index) -
permissions
permissions to be checked
-
-
Constructor Details
-
Route
-
-
Method Details
-
build
Helper to build a Route with a list of permissions to check.- Parameters:
url
- to handlemethod
- in controller to callpermissions
- to be checked- Returns:
- Route
-
build
Helper to build a Route with just one permission to check.- Parameters:
url
- to handlemethod
- in controller to callpermission
- to be checked- Returns:
- Route
-