Sunday, April 10, 2011

REST Architecture

I have some questions for REST architecture.

1. If we implement web application (for Web Browsers) in REST architecture and Java, we use Struts2 and REST plugin as the framework. And if we implement the CSV or XML file download function as web services, we use Apache CXF (or Apache Wink ?) as the framework.
And I want to change data format in the file name extension, for example, if you access http://.../persons/list.xml then the download data format is XML and if you access http://.../persons/list.html then the format is HTML. Can we implement that with using both Struts2 REST plugin and Apache CXF(or Apache Wink)?

2. If I realize 1. I design that the resource component returns the abstract model and the presenter component for each format changes the model to the data in each format.
But it can be possible that changing models to a format requires additional information than the abstract model.

No comments:

Post a Comment