Class AngularRoute

    • Constructor Summary

      Constructors 
      Constructor Description
      AngularRoute​(java.lang.String when, java.lang.String template, java.lang.String controller, java.lang.String redirection)
      Create an AngularJS route.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getController()
      Get the AngularJS controller for the route.
      java.lang.String getRedirection()  
      java.lang.String getTemplate()
      Get the HTML template for the route.
      java.lang.String getWhen()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AngularRoute

        public AngularRoute​(@Nonnull
                            java.lang.String when,
                            @CheckForNull
                            java.lang.String template,
                            @CheckForNull
                            java.lang.String controller,
                            @CheckForNull
                            java.lang.String redirection)
        Create an AngularJS route.
        Parameters:
        when - the trigger for the route
        template - the template loaded for the route; must be non-null if controller is non-null
        controller - the controller loaded for the route; must be non-null if template is non-null
        redirection - 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:
        java.lang.NullPointerException - if when is null
        java.lang.IllegalArgumentException - if any of the rules concerning when template, controller, and redirection must be non-null are violated