mikeh       2002/07/10 20:11:46

  Modified:    src/java/org/apache/turbine DynamicURI.java
  Log:
  added the methods to set the template and redirect values
  
  Revision  Changes    Path
  1.10      +28 -1     jakarta-turbine-3/src/java/org/apache/turbine/DynamicURI.java
  
  Index: DynamicURI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-3/src/java/org/apache/turbine/DynamicURI.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DynamicURI.java   19 Jun 2002 00:43:56 -0000      1.9
  +++ DynamicURI.java   11 Jul 2002 03:11:46 -0000      1.10
  @@ -772,6 +772,33 @@
       }
   
       /**
  +     * Sets the template = value for this URL.
  +     *
  +     * <p>By default it adds the information to the path_info instead
  +     * of the query data.
  +     *
  +     * @param template A String with the template value.
  +     * @return A DynamicURI (self).
  +     */
  +    public DynamicURI setTemplate(String template)
  +    {
  +        addPathInfo(Turbine.TEMPLATE, template);
  +        return this;
  +    }
  +
  +    /**
  +     * Sets whether we want to redirect or not.
  +     *
  +     * @param doRedirect True if it should redirect.
  +     * @return A DynamicURI (self).
  +     */
  +    public DynamicURI setRedirect(boolean doRedirect)
  +    {
  +        this.redirect = doRedirect;
  +        return this;
  +    }
  +
  +    /**
        * Method to specify that a URI should use SSL.  Whether or not it
        * does is determined from TurbineResources.properties.  Port
        * number is 443.
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to