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.
30 Day Summary Apr 16 2013 — May 16 2013
|
12 Month Summary May 16 2012 — May 16 2013
|
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.