Class JsonPatchPatchConverter
java.lang.Object
org.springframework.data.rest.webmvc.json.patch.JsonPatchPatchConverter
- All Implemented Interfaces:
PatchConverter<com.fasterxml.jackson.databind.JsonNode>
public class JsonPatchPatchConverter
extends Object
implements PatchConverter<com.fasterxml.jackson.databind.JsonNode>
Convert
JsonNode
s containing JSON Patch to/from Patch
objects.- Author:
- Craig Walls, Oliver Gierke, Mathias Düsterhöft, Oliver Trosien
-
Constructor Summary
ConstructorDescriptionJsonPatchPatchConverter
(com.fasterxml.jackson.databind.ObjectMapper mapper, BindContext context) -
Method Summary
-
Constructor Details
-
JsonPatchPatchConverter
public JsonPatchPatchConverter(com.fasterxml.jackson.databind.ObjectMapper mapper, BindContext context)
-
-
Method Details
-
convert
Constructs aPatch
object given a JsonNode.- Specified by:
convert
in interfacePatchConverter<com.fasterxml.jackson.databind.JsonNode>
- Parameters:
jsonNode
- a JsonNode containing the JSON Patch- Returns:
- a
Patch
-