O'Reilly logo

Restlet in Action: Developing RESTful web APIs in Java by Jerome Louvel, Thierry Templier, and Thierry Boileau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Producing and consuming Restlet representations

 

This chapter covers
  • Producing and consuming XML and JSON representations
  • Producing HTML using template representations
  • HTTP content negotiation
  • Simplifying representation handling with the converter service

 

In part 1 of the book, we had several opportunities to discuss representations. In chapter 1 we briefly explained that representations in REST are used to transfer resource state. We pointed to appendix A for an overview of the org.restlet.representation package and to appendix D for details on RESTful representation design, covering the definition of representation classes and the importance of hypermedia as the preferred mechanism to interact with an application in REST. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required