没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > wicket-rest |
|
wicket-rest
|
| 1 | 0 | 18 |
| 贡献者 | 讨论 | 代码提交 |
wicket-rest was born out of the realization that wicket provides some nice features for RESTful services and the KISS concept. I was working on a project using Wicket and needed RESTful services. I used JAXRS to start but soon noticed my Spring configuration and code getting a little bloated. With wicket-rest you can create a RESTful service by extending JsonWebServicePage or XmlWebServicePage and implementing the doGet, doPost, doPut, and doDelete methods. It's that easy. All XML/JSon marshaling and unmarshaling is handled by XStream and Gson, and your defaultModelObject is set by the API from the incoming message body. Just call setDefaultModel and your model object will be sent as XML or JSon. Thanks to Bruno Borges and his blog http://blog.brunoborges.com.br/2008/11/restful-web-services-with-wicket.html for the initial thought and implementation.
标签:
