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 |
addHeader(String name,
String value)
Add a header with the given name and value to the request.
|
PatchBuilder |
addLinkHeader(FcrepoLink linkHeader)
Add a link header to the request
|
PatchBuilder |
body(InputStream stream)
Add a body to this request from a stream, with application/sparql-update as its content type
|
PatchBuilder |
body(InputStream stream,
String contentType)
Add a body to this request as a stream with the given content type
|
protected org.apache.http.client.methods.HttpRequestBase |
createRequest()
Creates the HTTP request object for this builder
|
PatchBuilder |
digest(String digest)
Deprecated.
|
PatchBuilder |
digest(String digest,
String alg)
Provide a checksum for the body of this request
|
PatchBuilder |
digestMd5(String digest)
Provide a MD5 checksum for the body of this request
|
PatchBuilder |
digestSha1(String digest)
Provide a SHA-1 checksum for the body of this request.
|
PatchBuilder |
digestSha256(String digest)
Provide a SHA-256 checksum for the body of this request
|
PatchBuilder |
ifMatch(String etag)
Provide an etag for the if-match header for this request
|
PatchBuilder |
ifStateToken(String token)
Provide a value for the if-state-token header for this request.
|
PatchBuilder |
ifUnmodifiedSince(String modified)
Provide a if-unmodified-since header for this request
|
addInteractionModel, body, externalContent, linkAclperformpublic 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 body(InputStream stream, String contentType)
BodyRequestBuilderbody in class BodyRequestBuilderstream - InputStream of the content to be sent to the servercontentType - the Content-Type of the bodypublic 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 headerpublic PatchBuilder ifStateToken(String token)
BodyRequestBuilderifStateToken in class BodyRequestBuildertoken - state token value@Deprecated public PatchBuilder digest(String digest)
BodyRequestBuilderdigest in class BodyRequestBuilderdigest - sha-1 checksum to provide as the digest for the request bodypublic PatchBuilder digest(String digest, String alg)
BodyRequestBuilderdigest in class BodyRequestBuilderdigest - checksum to provide as the digest for the request bodyalg - abbreviated algorithm identifier for the type of checksum being
added (for example, sha1, md5, etc)public PatchBuilder digestMd5(String digest)
BodyRequestBuilderdigestMd5 in class BodyRequestBuilderdigest - MD5 checksum to provide as the digest for the request bodypublic PatchBuilder digestSha1(String digest)
BodyRequestBuilderdigestSha1 in class BodyRequestBuilderdigest - sha-1 checksum to provide as the digest for the request bodypublic PatchBuilder digestSha256(String digest)
BodyRequestBuilderdigestSha256 in class BodyRequestBuilderdigest - sha-256 checksum to provide as the digest for the request bodypublic PatchBuilder addHeader(String name, String value)
RequestBuilderaddHeader in class RequestBuildername - name of the headervalue - value of the headerpublic PatchBuilder addLinkHeader(FcrepoLink linkHeader)
RequestBuilderaddLinkHeader in class RequestBuilderlinkHeader - link header value represented as a FcrepoLinkCopyright © 2013–2021 DuraSpace, Inc.. All rights reserved.