Class RedirectCommand

    • Method Detail

      • targetedCommand

        public Command targetedCommand​(java.lang.Object target)
        Creates and returns a targeted Command by combining a URL (as String) with this Command. The supplied target object must be non-null and of type String. The URL passed to the constructor is actually an URL pattern, but it will be converted to a JSP page if it is a partial URL. If it is a full URL (beginning with http:// or https://), it will be "passed through" without conversion, and the URL pattern will be null.
        Specified by:
        targetedCommand in interface Command
        Specified by:
        targetedCommand in class AbstractCommand
        target - the object to combine
        the new, targeted Command
        java.lang.IllegalArgumentException - if the target is not of the correct type
        See Also: