public class GetDatastreamHistory extends FedoraRequest<GetDatastreamHistory>
Builder for the GetDatastreamHistory method.
| Constructor and Description |
|---|
GetDatastreamHistory(String pid,
String dsId) |
| Modifier and Type | Method and Description |
|---|---|
GetDatastreamHistoryResponse |
execute()
Executes this request against the
FedoraRequest.DEFAULT_CLIENT |
GetDatastreamHistoryResponse |
execute(FedoraClient fedora)
Execute this request using the supplied FedoraClient instance.
|
GetDatastreamHistory |
format(String format)
The format of the response.
|
addHeader, addQueryParam, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, isDefaultClientSet, removeHeader, resource, resource, resource, resource, setDefaultClient, setHeaders, xParampublic GetDatastreamHistory 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 - "html" or "xml". Defaults to "xml".public GetDatastreamHistoryResponse execute() throws FedoraClientException
FedoraRequestExecutes this request against the FedoraRequest.DEFAULT_CLIENT
execute in class FedoraRequest<GetDatastreamHistory>FedoraClientException - if FedoraRequest.DEFAULT_CLIENT is nullpublic GetDatastreamHistoryResponse execute(FedoraClient fedora) throws FedoraClientException
FedoraRequestExecute this request using the supplied FedoraClient instance.
execute in class FedoraRequest<GetDatastreamHistory>fedora - an instance of FedoraClientFedoraClientException - if the HTTP status code of the response is
>= 400.Copyright © 2010-2013 MediaShelf. All Rights Reserved.