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 JsonPatch
items
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonPatchRequest
add(java.lang.String path, java.lang.Object value)
JsonPatchRequest
copy(java.lang.String from, java.lang.String path)
java.util.Optional<Body>
getBody()
boolean
isEntityBody()
boolean
isMultiPart()
JsonPatchRequest
move(java.lang.String from, java.lang.String path)
JsonPatchRequest
remove(java.lang.String path)
JsonPatchRequest
replace(java.lang.String path, java.lang.Object value)
JsonPatchRequest
test(java.lang.String path, java.lang.Object value)
BodyPart
uniPart()
-
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, connectTimeout, cookie, cookie, cookie, downloadMonitor, equals, getConnectTimeout, getCreationTime, getHeaders, getHttpMethod, getObjectMapper, getPath, getUrl, getVersion, hashCode, header, headerReplace, headers, headersReplace, queryString, queryString, queryString, 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
getCharset, getField, getMode, getMonitor, multiParts
-
Methods inherited from interface kong.unirest.core.HttpRequest
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, connectTimeout, cookie, cookie, cookie, downloadMonitor, getConnectTimeout, getCreationTime, getHeaders, getHttpMethod, getUrl, getVersion, header, headerReplace, headers, headersReplace, queryString, queryString, queryString, responseEncoding, routeParam, routeParam, thenConsume, thenConsumeAsync, toSummary, version, withObjectMapper
-
-
-
-
Field Detail
-
items
private JsonPatch items
-
-
Constructor Detail
-
HttpRequestJsonPatch
HttpRequestJsonPatch(Config config, java.lang.String url)
-
-
Method Detail
-
add
public JsonPatchRequest add(java.lang.String path, java.lang.Object value)
- Specified by:
add
in interfaceJsonPatchRequest
-
remove
public JsonPatchRequest remove(java.lang.String path)
- Specified by:
remove
in interfaceJsonPatchRequest
-
replace
public JsonPatchRequest replace(java.lang.String path, java.lang.Object value)
- Specified by:
replace
in interfaceJsonPatchRequest
-
test
public JsonPatchRequest test(java.lang.String path, java.lang.Object value)
- Specified by:
test
in interfaceJsonPatchRequest
-
move
public JsonPatchRequest move(java.lang.String from, java.lang.String path)
- Specified by:
move
in interfaceJsonPatchRequest
-
copy
public JsonPatchRequest copy(java.lang.String from, java.lang.String path)
- Specified by:
copy
in interfaceJsonPatchRequest
-
getBody
public java.util.Optional<Body> getBody()
- Specified by:
getBody
in interfaceHttpRequest<JsonPatchRequest>
- Returns:
- if the request has a body it will be here.
-
isMultiPart
public boolean isMultiPart()
- Specified by:
isMultiPart
in interfaceBody
-
isEntityBody
public boolean isEntityBody()
- Specified by:
isEntityBody
in interfaceBody
-
-