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)
Provide a SHA-1 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 fileprotected BodyRequestBuilder digest(String digest)
digest - sha-1 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-2016 DuraSpace, Inc.. All Rights Reserved.