Online Books:
java.net on MarkMail:
Search |
||
Enunciate 1.7: Security and Custom Content TypesPosted by stoicflame on May 6, 2008 at 3:22 PM PDT
Enunciate 1.7 has been released!The primary feature of Enunciate 1.7 is support for securing your Web service endpoints using Spring Security. There is additional support for OAuth, with OpenID and WS-Security planned for 1.8. In addition, Enunciate 1.7 introduces the concept of custom REST content types, which you can use to support custom serialization formats for REST responses (beyond the default XML and JSON endpoints). Enjoy! »
Comments
Comments are listed in date ascending order (oldest first)
Submitted by marcelo_hack on Thu, 2008-05-08 14:48.
Do you have an example about the custom REST content type???
thanks,
Marcelo
Submitted by stoicflame on Fri, 2008-05-09 08:24.
There's a petclinic sample application that ships with Enunciate that demonstrates this. Take a look at the Clinic interface. You'll see two methods, "getClinicBrochure" and "getAnimalBrochure" that return custom content types.
By default, those two methods will return XML and JSON representations of the brochures. But you can see the @ContentType annotation which states that they can also return "text/plain", "text/html", and "application/pdf" representations of the brochures. Of course, Enunciate doesn't have default content type handler for those content types, so that's what the BrochureContentTypeHandler.java is for.
Submitted by brantlevinson on Thu, 2008-09-04 02:34.
Hello Ryan, thank you for giving us Enunciate. We are a software development team and we really like it. We have a question in regards to JSON. It seems that it's only for REST, we were wondering if it's supposed to give us a client side javascript library or if we should just proceed to use GWT-RPC for that.
Thanks in advanced,
Brant
|
||
|
|