Hi all,
I'd like to solicit feedback on the best way to support .rss/.atom
requests when using the rest plugin.
My first thought was to implement a generic ContentTypeHandler for
.rss or .atom requests that expects to be passed a Rome SyndFeed
object, but that implies that the getModel() method
Bill Stilwell wrote:
I'd like to solicit feedback on the best way to support .rss/.atom
requests when using the rest plugin.
Have you considered writing a custom content type handler? Content type
handlers are chosen based on URL extension.
Check the Custom ContentTypeHandlers section:
Yup, but as mentioned in the original email I'm not sure where to
construct the SyndFeed object. Doing it in the content handler doesn't
really make sense, as there's no generic way to map objects to an
RSS/Atom feed. My basic idea is that the ContentTypeHandler would
expect to be passed a
Bill Stilwell wrote:
The bit I'm having trouble figuring out is how the action would
know that the model should be a SyndFeed object - is there a
standard way to detect what extension was used when calling
the action? (I could parse it from request.getRequestURI(), but that
seems a bit
On Wed, Jan 28, 2009 at 6:45 PM, Dave Newton newton.d...@yahoo.com wrote:
The action doesn't need to know; that's the point. The framework serializes
the action based on the content type handler (CTH) registered to the URL
extension.
For example, the json extension uses a JSON serializer
Bill Stilwell wrote:
To me, this implies that there needs to be code
to map whatever the particular model is to the needs of the RSS feed.
Well yeah.
I think maybe I'm just completely misunderstanding what your system
looks like. The systems I've worked on tend to have a pretty orthogonal
On 29/01/2009, at 2:48 PM, Dave Newton wrote:
Bill Stilwell wrote:
To me, this implies that there needs to be code
to map whatever the particular model is to the needs of the RSS feed.
Well yeah.
I think maybe I'm just completely misunderstanding what your system
looks like. The systems
7 matches
Mail list logo