You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Subbu Allamaraju (JIRA)" <be...@incubator.apache.org> on 2005/06/28 18:31:59 UTC

[jira] Created: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

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  
 Environment: All
    Reporter: Subbu Allamaraju


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


[jira] Commented: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Subbu Allamaraju (JIRA)" <be...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=comments#action_12314958 ] 

Subbu Allamaraju commented on BEEHIVE-838:
------------------------------------------

Sounds good. Thanks.

> 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


[jira] Assigned: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=all ]

Carlin Rogers reassigned BEEHIVE-838:
-------------------------------------

    Assign To: Rich Feit  (was: Carlin Rogers)

Assigning to Rich for V1. Thanks, Carlin

> 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: Rich Feit
>      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


[jira] Updated: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=all ]

Carlin Rogers updated BEEHIVE-838:
----------------------------------

    Attachment: j838-patch2.txt

This patch has the change to the name of the overloaded toString() methods as suggested.
Thanks!

> 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, j838-patch2.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


[jira] Commented: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
    [ 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


[jira] Assigned: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=all ]

Alejandro Ramirez reassigned BEEHIVE-838:
-----------------------------------------

    Assign To: Nathan Jantz  (was: Alejandro Ramirez)

Please verify

> 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: Nathan Jantz
>      Fix For: V1
>  Attachments: j838-patch.txt, j838-patch2.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


[jira] Updated: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=all ]

Carlin Rogers updated BEEHIVE-838:
----------------------------------

    Attachment: j838-patch.txt

Attaching a patch to implement the toString(boolean) method. The patch includes an
update to the associated JUnit test case.

> 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


[jira] Commented: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=comments#action_12315188 ] 

Rich Feit commented on BEEHIVE-838:
-----------------------------------

I've added these changes with revision 209533.

> 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: Rich Feit
>      Fix For: V1
>  Attachments: j838-patch.txt, j838-patch2.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


[jira] Resolved: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=all ]
     
Rich Feit resolved BEEHIVE-838:
-------------------------------

    Resolution: Fixed
     Assign To: Carlin Rogers  (was: Rich Feit)

Hey Carlin, I submitted this change with revision 208805, but how would you feel about having this be called something *other* than toString()?  It seems strange to have an overloaded toString() that takes an argument.  Just my gut reaction... what do you think?

> 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


[jira] Assigned: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=all ]

Carlin Rogers reassigned BEEHIVE-838:
-------------------------------------

    Assign To: Rich Feit  (was: Carlin Rogers)

Assigning to Rich to review and commit for v1. Thanks.

> 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: Rich Feit
>      Fix For: V1
>  Attachments: j838-patch.txt, j838-patch2.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


[jira] Assigned: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=all ]

Carlin Rogers reassigned BEEHIVE-838:
-------------------------------------

    Assign To: Alejandro Ramirez  (was: Rich Feit)

Thanks for adding the second patch... and it's OK with me to leave in the basic toString() method.

> 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: Alejandro Ramirez
>      Fix For: V1
>  Attachments: j838-patch.txt, j838-patch2.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


[jira] Updated: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=all ]

Carlin Rogers updated BEEHIVE-838:
----------------------------------

    Fix Version: V1
        Version: v1m1
      Assign To: Carlin Rogers

> 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

>
> 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


[jira] Commented: (BEEHIVE-838) Add a toString(boolean) method to support optional cleanup of unknown tokens in URLTemplate class.

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/BEEHIVE-838?page=comments#action_12315103 ] 

Rich Feit commented on BEEHIVE-838:
-----------------------------------

Looks good to me, except that I re-added the basic toString() method.  I still think it's important for URI to have a toString().  Anyone disagree with that?

> 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: Rich Feit
>      Fix For: V1
>  Attachments: j838-patch.txt, j838-patch2.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