Map Using custom entity formats

Even though the Java API for RESTful Web Services (JAX-RS) runtime environment includes several entity providers for handling serialization from and deserialization to Java types, it does not support all possible media types. You can develop a custom entity provider to handle binding Java types to message bodies.

About this task

If your JAX-RS web application requires that additional Java types or media types are supported beyond what the JAX-RS APIs support, you can add a custom entity provider to the application. Any custom-defined entity provider takes precedence over the entity providers that are included in the JAX-RS runtime environment. Unlike resources, providers are always singleton beans.

Procedure

  1. Configure the development environment.
  2. Define the resources in JAX-RS web applications.
  3. Configure the JAX-RS application.
  4. Implement custom entity formats.
  5. Assemble JAX-RS web applications.
  6. Deploy JAX-RS web applications.

Results

You have developed and deployed a JAX-RS web application that contains a custom entity provider.




In this information ...


(Index)

IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.



Terms of Use | Feedback

Last updated: Sep 20, 2011 1:36:08 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v800webmob&product=was-nd-mp&topic=twbs_jaxrs_customentityformats
File name: twbs_jaxrs_customentityformats.html