You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Carlin Rogers (JIRA)" <be...@incubator.apache.org> on 2005/06/25 03:00:57 UTC

[jira] Updated: (BEEHIVE-835) Make improvements to the support for URL templating.

     [ http://issues.apache.org/jira/browse/BEEHIVE-835?page=all ]

Carlin Rogers updated BEEHIVE-835:
----------------------------------

    Attachment: j835-patch.txt

Attaching a patch with changes to address the improvements described in this bug.

Note that there have been a couple of files moved / deleted / added so there may be some manual
steps required to apply this patch.

- Deleted
D      netui\src\util\org\apache\beehive\netui\core\urltemplates\DefaultURLTemplateFileParser.java
D      netui\src\util\org\apache\beehive\netui\core\urltemplates\URLTemplateFileParser.java

- Moved 
netui\src\pageflow\org\apache\beehive\netui\pageflow\Factory.java
netui\src\pageflow\org\apache\beehive\netui\pageflow\FactoryConfig.java
to 
netui\src\util\org\apache\beehive\netui\core\Factory.java
netui\src\util\org\apache\beehive\netui\core\FactoryConfig.java
respectively.

- Added
A      netui\src\util\org\apache\beehive\netui\core\urltemplates\DefaultURLTemplatesFactory.java


> Make improvements to the support for URL templating.
> ----------------------------------------------------
>
>          Key: BEEHIVE-835
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-835
>      Project: Beehive
>         Type: Improvement
>   Components: NetUI
>     Versions: V1Alpha, V1Beta, v1m1
>     Reporter: Carlin Rogers
>     Assignee: Carlin Rogers
>      Fix For: V1
>  Attachments: j835-patch.txt
>
> These changes are based on the discussions from email I posted 
> to the beehive-dev@incubator.apache.org list. See...
> http://mail-archives.apache.org/mod_mbox/incubator-beehive-dev/200506.mbox/%3cba6911de050617080216c7f0d0@mail.gmail.com%3e
> and
> http://mail-archives.apache.org/mod_mbox/incubator-beehive-dev/200506.mbox/%3cba6911de0506240926ee7146b@mail.gmail.com%3e
> In summary...
> - deprecate URLTemplateDescriptor and just use the URLTemplatesFactory 
> to get a URLTemplate.
> - create a hook via the ServletContainerAdapter  to support container 
> specific implementations of URLTemplatesFactory (extending Factory) for 
> reading/parsing the beehive-url-template-config.xml descriptor file. 
> - after loading the URLTemplatesFactory  instance, set it as an 
> attribute on the ServletContext so TemplatedURLFormatter 
> implementations can get the desired URLTemplate when formatting a
> rewritten URL.
> - add an element to the beehive-netui-config schema to allow for a
> class name of a per-webapp TemplatedURLFormatter to be used by the
> URLRewriterService if there is not a per-request registered 
> TemplatedURLFormatter.
> - add this default TemplatedURLFormatter instance to the
> ServletContext for the URLRewriterService.
> And other minor modifications...
> - change TemplateTokenizer to accept more general token (I.e. "url:"
> is not required as part of the token string).
> - when formatting the URL with a template, if there is now replacement
> value for a token, use the empty string.
> - go back to "jpf-url-templates" as the name of the default template 
> ref group rather than "default-url-templates".

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