Enterprise Java Development@TOPIC@

Chapter 109. JAX-RS Content

109.1. JSON Content
109.1.1. JSON-B JSON Marshaling/Demarshaling
109.1.2. Jackson JSON Marshaling/Demarshaling
109.2. XML Content
109.2.1. Common JAXB Annotations
109.2.2. JAXB Maven Aspects
109.3. Content Handling
109.3.1. Client Marshal Request Content
109.3.2. API Receive Request Content
109.3.3. API Send Response Content
109.3.4. Demarshal Response Content
109.4. JAX-RS Client Maven Aspects
109.5. Summary

JSON is content type most preferred by Javascript UIs

{"text":"sample text"}

Direct dependency on API modules useful for pure DTO libraries

Direct dependency on API modules useful for pure DTO libraries


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<message>
    <text>sample text</text>
</message>

Content providers only necessary for IT tests. Application server will have all API and implementation modules server-side.