Skip to Content
RESTful Java Web Services, Second Edition
book

RESTful Java Web Services, Second Edition

by Jobinesh Purushothaman
September 2015
Intermediate to advanced
354 pages
8h 27m
English
Packt Publishing
Content preview from RESTful Java Web Services, Second Edition

Implementing PATCH support in JAX-RS resources

When a client changes only one part of the resource, you can optimize the entire update process by allowing the client to send only the modified part to the server and thereby saving the bandwidth and server resources. RFC 5789 proposes a solution for this use case via a new HTTP method, PATCH. We have already covered the theoretical concepts behind the PATCH method in Chapter 8, RESTful API Design Guidelines, under the Implementing partial update section. In this section, we will see how to actually implement the PATCH method in your JAX-RS application.

Defining the @PATCH annotation

JAX-RS allows you to define annotations to represent any custom or non-standard HTTP methods by annotating them with ...

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 - Third Edition

RESTful Java Web Services - Third Edition

Balachandar Bogunuva Mohanram
RESTful Web Services

RESTful Web Services

Leonard Richardson, Sam Ruby

Publisher Resources

ISBN: 9781784399092Supplemental Content