oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ross Laidlaw (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OODT-458) Allow XML namespaces to be defined in the RSS configuration file for the CAS REST service ('fmprod' webapp)
Date Thu, 14 Jun 2012 21:54:42 GMT

     [ https://issues.apache.org/jira/browse/OODT-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Ross Laidlaw updated OODT-458:

    Attachment: OODT-458.rlaidlaw.2012-06-14.patch.txt

I have attached a patch for review/comment.  This patch implements the changes described in
the previous comments above.  It updates the RSSProductServlet class to read RSS namespaces
from the XML configuration file rather than having hard-coded namespace information in the
class.  This patch does not change the 'RSSProductTransferServlet' class (this will be looked
at as a separate issue).
> Allow XML namespaces to be defined in the RSS configuration file for the CAS REST service
('fmprod' webapp)
> -----------------------------------------------------------------------------------------------------------
>                 Key: OODT-458
>                 URL: https://issues.apache.org/jira/browse/OODT-458
>             Project: OODT
>          Issue Type: Improvement
>          Components: file manager
>            Reporter: Ross Laidlaw
>            Assignee: Ross Laidlaw
>            Priority: Minor
>             Fix For: 0.4
>         Attachments: OODT-458.rlaidlaw.2012-06-14.patch.txt
> Update the CAS REST RSS service to allow namespaces to be defined in the RSS configuration
> Tag format for the RSS configuration file suggested by Paul Ramirez on [OODT-449|https://issues.apache.org/jira/browse/OODT-449].
 Examples shown below:
> {code}
> <namespace prefix="geo" uri="http://www.w3.org/2003/01/geo/wgs84_pos#" />
> <namespace prefix="georss" uri="http://www.georss.org/georss" />
> <namespace prefix="gml" uri="http://www.opengis.net/gml" />
> {code}
> Two RSS java classes have hard-coded 'cas' namespace definitions: RSSProductServlet and
RSSProductTransferServlet.  These classes both use a hashmap constant 'NS_MAP' to store namespaces
and write them to the RSS output.  With configurable namespaces, the 'cas' namespace definition
could also be moved to the RSS config and picked up by the ProductServlet and TransferServlet
from there instead of having hard-coded definitions:
> {code}
> <namespace prefix="cas" uri="http://oodt.apache.org/components/cas" />
> {code}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message