Multipart messages require special message formatting to send content for multiple messages content in a single message. IBM® JAX-RS provides classes to represent the multipart data model that can help read and write multipart messages. System registered default JAX-RS entity providers can serialize and deserialize the classes into message bodies. You can instantiate one of the multipart classes and add individual parts to the multipart data model. You can then return the multipart instance in a resource method and have the JAX-RS runtime environment automatically format and output the multipart message.
If you specifically need to use multipart/form-data content, refer to the "Using multipart/form-data content in JAX-RS application requests and responses" section.
You have developed and deployed a JAX-RS web application on the application server that consumes and produces messages of multiple content types.
In this information ... |
(Index) IBM Redbooks, demos, education, and more |