Skip to Content
RESTful Java Web Services - Third Edition
book

RESTful Java Web Services - Third Edition

by Balachandar Bogunuva Mohanram
November 2017
Intermediate to advanced
420 pages
10h 29m
English
Packt Publishing
Content preview from RESTful Java Web Services - Third Edition

Using JAXB to manage the mapping of the request and response entity body to Java objects

If you want more control over the marshalling and unmarshalling of objects, such as skipping some fields or renaming field names, you can use the Java Architecture for XML Binding (JAXB) annotations to indicate this to the runtime. Let's take a quick look at this feature.

JAXB allows Java developers to access and process the XML data without worrying about the XML structure of the content. JAXB offers annotations that map XML to the Java class and vice versa, letting you work on the Java objects. JAX-RS can automatically read and write both XML and JSON by using JAXB. Our discussions in this section are focused on using the JAXB annotation for managing ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

RESTful Java Web Services, Second Edition

RESTful Java Web Services, Second Edition

Jobinesh Purushothaman
Java Web Services

Java Web Services

David A Chappell, Tyler Jewell

Publisher Resources

ISBN: 9781788294041Supplemental Content