beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers (JIRA)" <>
Subject [jira] Updated: (BEEHIVE-835) Make improvements to the support for URL templating.
Date Fri, 01 Jul 2005 20:24:58 GMT
     [ ]

Carlin Rogers updated BEEHIVE-835:

    Attachment: j835-patch2.txt

This patch addresses the suggestions made by Rich, along with a couple other minor tweaks.
- Moved the default implementations of TemplatedURLFormatter and URLTemplatesFactory.
- Added a method to PageFlowUtils to create a new container specific URLTemplatesFactory
instance (or the default) since the Adaptermanager class is internal, not really exposed as
public API.
- DefaultServletContainerAdapter.getFactory() just returns null.
- The "templated-url-formatter-class" schema element in netui-config.xsd now has a default
- Backed out the previous patch change to the value of the DEFAULT_TEMPLATE_REF constant.
It is set to "default-url-templates". Moved this constant into TemplatedURLFormatter.

Also to avoid a conflict with the patch for JIRA BEEHIVE-840, this patch includes the
changes in the 840 patch. Just apply this patch and then ignore the patch attached
to 840. Thanks.

> Make improvements to the support for URL templating.
> ----------------------------------------------------
>          Key: BEEHIVE-835
>          URL:
>      Project: Beehive
>         Type: Improvement
>   Components: NetUI
>     Versions: v1m1, V1Beta, V1Alpha
>     Reporter: Carlin Rogers
>     Assignee: Carlin Rogers
>      Fix For: V1
>  Attachments: j835-patch.txt, j835-patch2.txt
> These changes are based on the discussions from email I posted 
> to the list. See...
> and
> 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:
For more information on JIRA, see:

View raw message