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 |
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 |
ifMatch(String etag)
Provide an etag for the if-match header for this request
|
BodyRequestBuilder |
ifUnmodifiedSince(String modified)
Provide a if-unmodified-since header for this request
|
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 file@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 bodypublic 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 headerCopyright © 2013–2017 DuraSpace, Inc.. All rights reserved.