public class ListDatastreams extends FedoraRequest<ListDatastreams>
Constructor and Description |
---|
ListDatastreams(String pid) |
Modifier and Type | Method and Description |
---|---|
ListDatastreams |
asOfDateTime(String asOfDateTime)
Indicates that the result should be relative to the digital object as it
existed on the given date.
|
ListDatastreams |
dsState(String dsState) |
ListDatastreamsResponse |
execute()
Executes this request against the
FedoraRequest.DEFAULT_CLIENT |
ListDatastreamsResponse |
execute(FedoraClient fedora)
Execute this request using the supplied FedoraClient instance.
|
ListDatastreams |
format(String format)
The format of the response.
|
ListDatastreams |
validateChecksum(boolean validateChecksum)
Verifies that the Datastream content has not changed since the checksum
was initially computed.
|
addHeader, addQueryParam, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, isDefaultClientSet, removeHeader, resource, resource, resource, resource, setDefaultClient, setHeaders, xParam
public ListDatastreams(String pid)
pid
- persistent identifier of the digital objectpublic ListDatastreams asOfDateTime(String asOfDateTime)
asOfDateTime
- datetime string as yyyy-MM-dd or yyyy-MM-ddTHH:mm:ssZpublic ListDatastreams dsState(String dsState)
dsState
- one of "A", "I", "D" (*A*ctive, *I*nactive, *D*eleted)public ListDatastreams format(String format)
The format of the response. Defaults to "xml".
The Fedora REST API default is "html", but fedora-client will set "xml" as the default in order to parse the response. If "html" is selected, the caller is responsible for parsing the raw HTTP response as most of the FedoraResponse convenience methods rely on an XML response.
format
- The response format, either "xml" or "html"public ListDatastreams validateChecksum(boolean validateChecksum)
asOfDateTime
is
null, Fedora will use the most recent version.validateChecksum
- public ListDatastreamsResponse execute() throws FedoraClientException
FedoraRequest
Executes this request against the FedoraRequest.DEFAULT_CLIENT
execute
in class FedoraRequest<ListDatastreams>
FedoraClientException
- if FedoraRequest.DEFAULT_CLIENT
is null
public ListDatastreamsResponse execute(FedoraClient fedora) throws FedoraClientException
FedoraRequest
Execute this request using the supplied FedoraClient instance.
execute
in class FedoraRequest<ListDatastreams>
fedora
- an instance of FedoraClientFedoraClientException
- if the HTTP status code of the response is
>= 400.Copyright © 2010-2013 MediaShelf. All Rights Reserved.