public class BatchGetDatastreams extends FedoraRequest<BatchGetDatastreams>
Builder for the BatchGetDatastreams method.
BatchGetDatastreams is not natively supported by Fedora. This is an proof-of-concept implementation of a batch request and currently requires manual patching of Fedora to support this request.
BatchGetDatastreams issues a single client request for each of the requested datastreams of each of the requested pids and returns the combined result as a multipart/mixed response.
| Constructor and Description |
|---|
BatchGetDatastreams() |
| Modifier and Type | Method and Description |
|---|---|
BatchGetDatastreams |
asOfDateTime(String asOfDateTime) |
BatchGetDatastreams |
download(boolean download) |
BatchGetDatastreams |
dsids(Collection<String> dsids) |
BatchGetDatastreams |
dsids(String... dsids)
Convenience method for
dsids(Collection). |
BatchResponse |
execute()
Executes this request against the
FedoraRequest.DEFAULT_CLIENT |
BatchResponse |
execute(FedoraClient fedora)
Execute this request using the supplied FedoraClient instance.
|
BatchGetDatastreams |
pids(Collection<String> pids) |
BatchGetDatastreams |
pids(String... pids)
Convenience method for
pids(Collection). |
addHeader, addQueryParam, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, isDefaultClientSet, removeHeader, resource, resource, resource, resource, setDefaultClient, setHeaders, xParampublic BatchGetDatastreams pids(Collection<String> pids)
pids - The pids to fetch datastreams frompublic BatchGetDatastreams pids(String... pids)
Convenience method for pids(Collection).
pids - The pids to fetch datastreams frompublic BatchGetDatastreams dsids(Collection<String> dsids)
dsids - The datastream ids that will be requested of each objectpublic BatchGetDatastreams dsids(String... dsids)
Convenience method for dsids(Collection).
dsids - The datastream ids that will be requested of each objectpublic BatchGetDatastreams asOfDateTime(String asOfDateTime)
public BatchGetDatastreams download(boolean download)
public BatchResponse execute() throws FedoraClientException
FedoraRequestExecutes this request against the FedoraRequest.DEFAULT_CLIENT
execute in class FedoraRequest<BatchGetDatastreams>FedoraClientException - if FedoraRequest.DEFAULT_CLIENT is nullpublic BatchResponse execute(FedoraClient fedora) throws FedoraClientException
FedoraRequestExecute this request using the supplied FedoraClient instance.
execute in class FedoraRequest<BatchGetDatastreams>fedora - an instance of FedoraClientFedoraClientException - if the HTTP status code of the response is
>= 400.Copyright © 2010-2013 MediaShelf. All Rights Reserved.