| java.lang.Object com.ecyrd.jspwiki.ui.AbstractCommand
All known Subclasses: com.ecyrd.jspwiki.ui.RedirectCommand, com.ecyrd.jspwiki.ui.WikiCommand, com.ecyrd.jspwiki.ui.GroupCommand, com.ecyrd.jspwiki.ui.PageCommand,
AbstractCommand | abstract public class AbstractCommand implements Command(Code) | | Abstract, immutable Command implementation class. All of the fields in this
class are final . This class is thread-safe.
author: Andrew Jaquith since: 2.4.22 |
Constructor Summary | |
protected | AbstractCommand(String requestContext, String urlPattern, String contentTemplate, Object target) Constructs a new Command with a specified wiki context, URL pattern,
content template and target. |
AbstractCommand | protected AbstractCommand(String requestContext, String urlPattern, String contentTemplate, Object target)(Code) | | Constructs a new Command with a specified wiki context, URL pattern,
content template and target. The URL pattern is used to derive
the JSP; if it is a "local" JSP (that is, it does not contain
the http:// or https:// prefixes),
then the JSP will be a cleansed version of the URL pattern;
symbols (such as %u ) will removed. If it the supplied
URL pattern points to a non-local destination, the JSP will be set
to the value supplied, unmodified.
Parameters: requestContext - the request context Parameters: urlPattern - the URL pattern Parameters: contentTemplate - the content template; may be null Parameters: target - the target of the command, such as a WikiPage; may benull throws: IllegalArgumentException - if the request content or URL pattern isnull |
allCommands | final public static Command[] allCommands()(Code) | | Returns a defensively-created array of all
static Commands.
the array of commands |
getJSPFriendlyName | final protected String getJSPFriendlyName()(Code) | | Returns the "friendly name" for this command's JSP, namely
a beatified version of the JSP's name without the .jsp suffix.
the friendly name |
|
|