Class URLRedirect

    • Field Detail

      • template

        public String template
        The incoming url template the URL pattern to match AFTER the /prefix using {name} to indicate variables
        Example: /{thing}/site/{siteId} will match the following URL:
        /myprefix/123/site/456, the variables will be {prefix => myprefix, thing => 123, siteId => 456}
      • outgoingTemplate

        public String outgoingTemplate
        (optional) the outgoing template to place the variables into, leave null if using the methods
      • methodName

        public String methodName
        (optional) This will be non-null if there is a custom action method which was found or identified by the annotation EntityCustomAction or if the developer has defined this explicitly
      • methodArgTypes

        public Class<?>[] methodArgTypes
        (optional) These are the argument types found in the custom action method in order, this should not be populated manually as any value in this will be overwritten
        Must be set if the methodName is set
      • controllable

        public boolean controllable
        indicates that this is controllable or not, if this is controllable then all the other fields will be ignored and the redirects will be sent to the execute method
    • Constructor Detail

      • URLRedirect

        public URLRedirect​(String template)
        Use this for controllable template matches only
        Parameters:
        template -
      • URLRedirect

        public URLRedirect​(String template,
                           String outgoingTemplate)
      • URLRedirect

        public URLRedirect​(String template,
                           String methodName,
                           Class<?>[] methodArgTypes)