Package kong.unirest.core
Class HttpRequestJsonPatch
- java.lang.Object
-
- kong.unirest.core.BaseRequest<JsonPatchRequest>
-
- kong.unirest.core.HttpRequestJsonPatch
-
- All Implemented Interfaces:
Body,HttpRequest<JsonPatchRequest>,JsonPatchRequest
class HttpRequestJsonPatch extends BaseRequest<JsonPatchRequest> implements JsonPatchRequest
-
-
Field Summary
Fields Modifier and Type Field Description private JsonPatchitems-
Fields inherited from class kong.unirest.core.BaseRequest
config, headers, method, url
-
Fields inherited from interface kong.unirest.core.JsonPatchRequest
CONTENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description HttpRequestJsonPatch(Config config, java.lang.String url)HttpRequestJsonPatch(HttpRequestJsonPatch baseRequest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonPatchRequestadd(java.lang.String path, java.lang.Object value)JsonPatchRequestcopy(java.lang.String from, java.lang.String path)java.util.Optional<Body>getBody()JsonPatchgetPatch()booleanisEntityBody()booleanisMultiPart()JsonPatchRequestmove(java.lang.String from, java.lang.String path)JsonPatchRequestremove(java.lang.String path)JsonPatchRequestreplace(java.lang.String path, java.lang.Object value)JsonPatchRequesttest(java.lang.String path, java.lang.Object value)BodyPartuniPart()-
Methods inherited from class kong.unirest.core.BaseRequest
accept, asBytes, asBytesAsync, asBytesAsync, asEmpty, asEmptyAsync, asEmptyAsync, asFile, asFileAsync, asFileAsync, asJson, asJsonAsync, asJsonAsync, asObject, asObject, asObject, asObjectAsync, asObjectAsync, asObjectAsync, asObjectAsync, asObjectAsync, asPaged, asString, asStringAsync, asStringAsync, basicAuth, cookie, cookie, cookie, downloadMonitor, equals, getCreationTime, getDownloadMonitor, getHeaders, getHttpMethod, getObjectMapper, getPath, getRequestTimeout, getUrl, getVersion, hashCode, header, headerReplace, headers, headersReplace, queryString, queryString, queryString, requestTimeout, responseEncoding, routeParam, routeParam, thenConsume, thenConsumeAsync, toSummary, version, withObjectMapper
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface kong.unirest.core.Body
getBoundary, getCharset, getField, getMode, getMonitor, multiParts
-
Methods inherited from interface kong.unirest.core.HttpRequest
accept, accept, asBytes, asBytesAsync, asBytesAsync, asEmpty, asEmptyAsync, asEmptyAsync, asFile, asFileAsync, asFileAsync, asJson, asJsonAsync, asJsonAsync, asObject, asObject, asObject, asObjectAsync, asObjectAsync, asObjectAsync, asObjectAsync, asObjectAsync, asPaged, asString, asStringAsync, asStringAsync, basicAuth, cookie, cookie, cookie, downloadMonitor, getCreationTime, getHeaders, getHttpMethod, getRequestTimeout, getUrl, getVersion, header, headerReplace, headers, headersReplace, queryString, queryString, queryString, requestTimeout, responseEncoding, routeParam, routeParam, thenConsume, thenConsumeAsync, toSummary, version, withObjectMapper
-
-
-
-
Field Detail
-
items
private JsonPatch items
-
-
Constructor Detail
-
HttpRequestJsonPatch
HttpRequestJsonPatch(Config config, java.lang.String url)
-
HttpRequestJsonPatch
public HttpRequestJsonPatch(HttpRequestJsonPatch baseRequest)
-
-
Method Detail
-
add
public JsonPatchRequest add(java.lang.String path, java.lang.Object value)
- Specified by:
addin interfaceJsonPatchRequest
-
remove
public JsonPatchRequest remove(java.lang.String path)
- Specified by:
removein interfaceJsonPatchRequest
-
replace
public JsonPatchRequest replace(java.lang.String path, java.lang.Object value)
- Specified by:
replacein interfaceJsonPatchRequest
-
test
public JsonPatchRequest test(java.lang.String path, java.lang.Object value)
- Specified by:
testin interfaceJsonPatchRequest
-
move
public JsonPatchRequest move(java.lang.String from, java.lang.String path)
- Specified by:
movein interfaceJsonPatchRequest
-
copy
public JsonPatchRequest copy(java.lang.String from, java.lang.String path)
- Specified by:
copyin interfaceJsonPatchRequest
-
getBody
public java.util.Optional<Body> getBody()
- Specified by:
getBodyin interfaceHttpRequest<JsonPatchRequest>- Returns:
- if the request has a body it will be here.
-
isMultiPart
public boolean isMultiPart()
- Specified by:
isMultiPartin interfaceBody
-
isEntityBody
public boolean isEntityBody()
- Specified by:
isEntityBodyin interfaceBody
-
getPatch
public JsonPatch getPatch()
-
-