Package jmri.server.web.spi
Class AngularRoute
java.lang.Object
jmri.server.web.spi.AngularRoute
-
Constructor Summary
ConstructorsConstructorDescriptionAngularRoute(String when, String template, String controller, String redirection) Create an AngularJS route. -
Method Summary
Modifier and TypeMethodDescriptionGet the AngularJS controller for the route.Get the HTML template for the route.getWhen()
-
Constructor Details
-
AngularRoute
public AngularRoute(@Nonnull String when, @CheckForNull String template, @CheckForNull String controller, @CheckForNull String redirection) Create an AngularJS route.- Parameters:
when- the trigger for the routetemplate- the template loaded for the route; must be non-null if controller is non-nullcontroller- the controller loaded for the route; must be non-null if template is non-nullredirection- the path to redirect the route to; must be non-null if template and controller is null; must be null if template and controller is non-null- Throws:
NullPointerException- if when is nullIllegalArgumentException- if any of the rules concerning when template, controller, and redirection must be non-null are violated
-
-
Method Details
-
getRedirection
-
getWhen
-
getTemplate
Get the HTML template for the route.- Returns:
- the template or null
-
getController
Get the AngularJS controller for the route.- Returns:
- the controller or null
-