public class JsonApiPatch extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isPatchExtension(String header)
Determine whether or not ext = jsonpatch is present in header.
|
static Supplier<org.apache.commons.lang3.tuple.Pair<Integer,com.fasterxml.jackson.databind.JsonNode>> |
processJsonPatch(DataStore dataStore,
String uri,
String patchDoc,
PatchRequestScope requestScope)
Process json patch.
|
public static Supplier<org.apache.commons.lang3.tuple.Pair<Integer,com.fasterxml.jackson.databind.JsonNode>> processJsonPatch(DataStore dataStore, String uri, String patchDoc, PatchRequestScope requestScope)
dataStore
- the dataStoreuri
- the uripatchDoc
- the patch docrequestScope
- request scopepublic static boolean isPatchExtension(String header)
header
- the headerCopyright © 2015–2021 Yahoo! Inc.. All rights reserved.