public abstract class BodyRequestBuilder extends RequestBuilder
client, request, targetUri| Modifier | Constructor and Description |
|---|---|
protected |
BodyRequestBuilder(URI uri,
FcrepoClient client)
Instantiate builder
|
| Modifier and Type | Method and Description |
|---|---|
protected BodyRequestBuilder |
addInteractionModel(String interactionModelUri)
Add an interaction model to the request
|
protected BodyRequestBuilder |
body(File file,
String contentType)
Add the given file as the body for this request with the provided content type
|
protected BodyRequestBuilder |
body(InputStream stream)
Add a body to this request from a stream, with application/octet-stream as its content type
|
protected BodyRequestBuilder |
body(InputStream stream,
String contentType)
Add a body to this request as a stream with the given content type
|
protected BodyRequestBuilder |
digest(String digest)
Deprecated.
|
protected BodyRequestBuilder |
digest(String digest,
String alg)
Provide a checksum for the body of this request
|
protected BodyRequestBuilder |
digestMd5(String digest)
Provide a MD5 checksum for the body of this request
|
protected BodyRequestBuilder |
digestSha1(String digest)
Provide a SHA-1 checksum for the body of this request.
|
protected BodyRequestBuilder |
digestSha256(String digest)
Provide a SHA-256 checksum for the body of this request
|
protected BodyRequestBuilder |
externalContent(URI contentURI,
String contentType,
String handling)
Add the given URI to the request as the location a Non-RDF Source binary should use for external content.
|
protected BodyRequestBuilder |
ifMatch(String etag)
Provide an etag for the if-match header for this request
|
protected BodyRequestBuilder |
ifStateToken(String token)
Provide a value for the if-state-token header for this request.
|
BodyRequestBuilder |
ifUnmodifiedSince(String modified)
Provide a if-unmodified-since header for this request
|
protected BodyRequestBuilder |
linkAcl(String aclUri)
Provide the URI to an ACL for this request
|
addHeader, addLinkHeader, createRequest, performprotected BodyRequestBuilder(URI uri, FcrepoClient client)
uri - uri request will be issued toclient - the clientprotected BodyRequestBuilder body(InputStream stream)
stream - InputStream of the content to be sent to the serverprotected BodyRequestBuilder body(InputStream stream, String contentType)
stream - InputStream of the content to be sent to the servercontentType - the Content-Type of the bodyprotected BodyRequestBuilder body(File file, String contentType) throws IOException
file - File containing the content to be sent to the servercontentType - the Content-Type of the bodyIOException - when unable to stream the body fileprotected BodyRequestBuilder externalContent(URI contentURI, String contentType, String handling)
contentURI - URI of the external content.contentType - Mimetype to supply for the external content.handling - Name of the handling method, used by the server to determine how to process the external
content URI. Standard values can be found in ExternalContentHandling.@Deprecated protected BodyRequestBuilder digest(String digest)
digestSha1(java.lang.String).digest - sha-1 checksum to provide as the digest for the request bodyprotected BodyRequestBuilder digest(String digest, String alg)
digest - 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)protected BodyRequestBuilder digestSha1(String digest)
digest - sha-1 checksum to provide as the digest for the request bodyprotected BodyRequestBuilder digestMd5(String digest)
digest - MD5 checksum to provide as the digest for the request bodyprotected BodyRequestBuilder digestSha256(String digest)
digest - sha-256 checksum to provide as the digest for the request bodyprotected BodyRequestBuilder addInteractionModel(String interactionModelUri)
interactionModelUri - URI of the interaction modelpublic BodyRequestBuilder ifUnmodifiedSince(String modified)
modified - date to provide as the if-unmodified-since headerprotected BodyRequestBuilder ifMatch(String etag)
etag - etag to provide as the if-match headerprotected BodyRequestBuilder linkAcl(String aclUri)
aclUri - URI to the ACLprotected BodyRequestBuilder ifStateToken(String token)
token - state token valueCopyright © 2013–2021 DuraSpace, Inc.. All rights reserved.