Class AbstractCommand

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractCommand​(java.lang.String requestContext, java.lang.String urlPattern, java.lang.String contentTemplate, java.lang.Object target)
      Constructs a new Command with a specified wiki context, URL pattern, content template and target.
    • Constructor Detail

      • AbstractCommand

        protected AbstractCommand​(java.lang.String requestContext,
                                  java.lang.String urlPattern,
                                  java.lang.String contentTemplate,
                                  java.lang.Object target)
        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 be removed. If 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
        urlPattern - the URL pattern
        contentTemplate - the content template; may be null
        target - the target of the command, such as a WikiPage; may be null
        Throws:
        java.lang.IllegalArgumentException - if the request content or URL pattern is null