You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by mi...@apache.org on 2002/07/11 05:11:46 UTC
cvs commit: jakarta-turbine-3/src/java/org/apache/turbine DynamicURI.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: cvs commit: jakarta-turbine-3/src/java/org/apache/turbine DynamicURI.java
Posted by Mike Haberman <mi...@ncsa.uiuc.edu>.
Perhaps we should update the constructors to use templates instead of
screens?
On Thu, Jul 11, 2002 at 03:11:46AM -0000, mikeh@apache.org wrote:
> 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: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
-------------------------------------------------
I am Vinz, Vinz Clortho. Keymaster of Gozer,
Volguus Zildrohar, Lord of the Sebouillia.
Are you the Gatekeeper?
-------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>