abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Diephouse (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ABDERA-56) Spring Integration
Date Sat, 11 Aug 2007 17:41:43 GMT

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

Dan Diephouse updated ABDERA-56:

    Attachment: spring-module.patch

This is the spring stuff I wrote included as a separate module. I didn't have time to do the
ant stuff today, so someone else may have to do that or I'll revisit sometime soon.

> Spring Integration
> ------------------
>                 Key: ABDERA-56
>                 URL: https://issues.apache.org/jira/browse/ABDERA-56
>             Project: Abdera
>          Issue Type: New Feature
>            Reporter: Dan Diephouse
>             Fix For: 0.3.0
>         Attachments: spring-module.patch, spring-server.patch, spring.patch
> I've written a spring module for Abdera which providers an AbderaServlet which works
with Spring as well as some XML parsers. With this creating an Abdera Provider becomes as
simple as this:
>   <a:serviceContext>
>     <a:provider>
>       <ref bean="provider"/>
>     </a:provider>
>     <a:targetResolver>
>       <a:regexTargetResolver>
>         <a:collection>/atom/feed(\\?[^#]*)?</a:collection>
>         <a:entry>/atom/feed/([^/#?]+)(\\?[^#]*)?</a:entry>
>         <a:service>/atom(\\?[^#]*)?</a:service>
>       </a:regexTargetResolver>
>     </a:targetResolver>
>   </a:serviceContext>
>   <bean id="provider" class="org.apache.abdera.spring.TestProvider">
>   </bean>
> The only code you need to write then is the TestProvider class.
> This patch does make two other changes.
> 1. It modifies the Resolver interface to add a initializeContextPath(String context)
method. This makes it so you can create target resolvers and not have to worry about the context
path when you initialize it - Abdera will just initialize it later.  I'm not sure that what
I came up with is the best way to do that though. Any other suggestions? Maybe Resolver.resolve
should take contextPath as a parameter? Maybe the request URI should come without the context
path in it?
> 2. Uses the correct groupId for Woodstox in MAven

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message