public final class RedirectCommand extends AbstractCommand
Defines Commands for redirections to off-site special pages.
RedirectCommands do not have associated
requiredPermission() method will
null. When combined with a supplied String
AbstractCommand.getTarget() method will return a String, the
AbstractCommand.getURLPattern() method will return the supplied target URL,
AbstractCommand.getJSP() method will return the "cleansed" URL.
This class is not
final; it may be extended in
|Modifier and Type||Method and Description|
Returns the human-friendly name for this command.
No-op; always returns
Creates and returns a targeted Command by combining a URL (as String) with this Command.
allCommands, getContentTemplate, getJSP, getJSPFriendlyName, getRequestContext, getTarget, getURLPattern, toString
public Command targetedCommand(Object target)
targetobject must be non-
nulland 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
https://), it will be "passed through" without conversion, and the URL pattern will be
target- the object to combine
IllegalArgumentException- if the target is not of the correct type
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.