beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers (JIRA)" <beehive-...@incubator.apache.org>
Subject [jira] Commented: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.
Date Fri, 01 Jul 2005 22:55:01 GMT
    [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=comments#action_12314925 ] 

Carlin Rogers commented on BEEHIVE-838:
---------------------------------------

Rich, yes I agree. I thought about using a method other than toString() as well.

Subbu, sound OK? I'm not available next week but can change the
URLTemplate toString() methods to something like 

    public String format();

and 

    public String format(boolean removeUnsetTokens);


> Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate
class.
> --------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-838
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-838
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: v1m1
>  Environment: All
>     Reporter: Subbu Allamaraju
>     Assignee: Carlin Rogers
>      Fix For: V1
>  Attachments: j838-patch.txt
>
> The toString() method in URLTemplate supposedly (I've not tested yet) removes unknown
tokens. We have some use cases where URLs are prepared in multiple passes with each pass filling
some tokens only known at that pass. In between these passes, URLs are passed as strings and
not as URLTemplate objects, and hence we need to way to tell URLTemplate to not cleanup unknown
tokens.
> A method like toString(boolean unsetTokens) would solve our use case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message