You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by "Henning P. Schmiedehausen" <ma...@hometree.net> on 2001/05/14 23:29:06 UTC
TemplateLink::setPage()
Is there a particular reason why TemplateLink::setPage returns a
DynamicURI and not a TemplateLink?
is there any reason not to rewrite this as
public TemplateLink setPage(String t)
{
template = t;
addPathInfo(TEMPLATE_KEY, t);
return this;
}
?
I was also wondering whether it would be a good idea to rewrite the
whole of DynamicURI and its children into using an Interface.
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH hps@intermeta.de
Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de
D-91054 Buckenhof Fax.: 09131 / 50654-20
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
Re: TemplateLink::setPage()
Posted by John McNally <jm...@collab.net>.
>
> I was also wondering whether it would be a good idea to rewrite the
> whole of DynamicURI and its children into using an Interface.
>
> Regards
> Henning
check the mail archives regarding move of ParameterParser to an
interface for some potential issues before starting on this.
john mcnally
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
Re: TemplateLink::setPage()
Posted by Jon Stevens <jo...@latchkey.com>.
on 5/14/01 2:29 PM, "Henning P. Schmiedehausen" <ma...@hometree.net>
wrote:
> Is there a particular reason why TemplateLink::setPage returns a
> DynamicURI and not a TemplateLink?
>
> is there any reason not to rewrite this as
>
> public TemplateLink setPage(String t)
> {
> template = t;
> addPathInfo(TEMPLATE_KEY, t);
> return this;
> }
>
> ?
Seems good to me.
> I was also wondering whether it would be a good idea to rewrite the
> whole of DynamicURI and its children into using an Interface.
Not really sure if this is needed, but it can't really hurt...
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org