public class PatchBuilder extends BodyRequestBuilder
client, request, targetUri| Constructor and Description |
|---|
PatchBuilder(URI uri,
FcrepoClient client)
Instantiate builder
|
| Modifier and Type | Method and Description |
|---|---|
PatchBuilder |
body(InputStream stream)
Patch defaults to a sparql update
|
protected org.apache.http.client.methods.HttpRequestBase |
createRequest()
Creates the HTTP request object for this builder
|
PatchBuilder |
ifMatch(String etag)
Provide an etag for the if-match header for this request
|
PatchBuilder |
ifUnmodifiedSince(String modified)
Provide a if-unmodified-since header for this request
|
body, body, digestperformpublic PatchBuilder(URI uri, FcrepoClient client)
uri - uri of the resource this request is being made toclient - the clientprotected org.apache.http.client.methods.HttpRequestBase createRequest()
RequestBuildercreateRequest in class RequestBuilderpublic PatchBuilder body(InputStream stream)
body in class BodyRequestBuilderstream - InputStream of the content to be sent to the serverpublic PatchBuilder ifMatch(String etag)
BodyRequestBuilderifMatch in class BodyRequestBuilderetag - etag to provide as the if-match headerpublic PatchBuilder ifUnmodifiedSince(String modified)
BodyRequestBuilderifUnmodifiedSince in class BodyRequestBuildermodified - date to provide as the if-unmodified-since headerCopyright © 2013-2016 DuraSpace, Inc.. All Rights Reserved.