Mapper¶
-
public class
Mapper
¶
Constructors¶
Methods¶
connect¶
-
public void
connect
(String url, String[] methods, Object handler, String action)¶ Connect a URL to the framework’s url router.
Parameters: - url – The url path.
- methods – Array of method names that apply on this url
- handler – Object of the handler class.
- action – The name of a public method defined in the handler class that processes the functionality for this url.
connect¶
-
public void
connect
(String url, String[] methods, Object handler, String action, Permissions permissions)¶ Connect a URL to the framework’s url router.
Parameters: - url – The url path.
- methods – Array of method names that apply on this url
- handler – Object of the handler class.
- action – The name of a public method defined in the handler class that processes the functionality for this url.
- permissions – Permissions object for this URL
See also:
Permissions
match¶
-
public RouteMatch
match
(HttpRequest req)¶ This method is used by the framework. The application has no direct use in calling this method.
Parameters: - req – The http request object
subMapper¶
-
public SubMapper
subMapper
(Object handler)¶ Returns a new sub mapper object. This can avoid adding handler to every mapper connect call.
Parameters: - handler – Object of the handler class which has the action methods
Returns: SubMapper Object to a submapper through which one can connect urls with inputting the handler object on every connect call.