public class GetObjectHistory extends FedoraRequest<GetObjectHistory>
Constructor and Description |
---|
GetObjectHistory(String pid) |
Modifier and Type | Method and Description |
---|---|
GetObjectHistoryResponse |
execute()
Executes this request against the
FedoraRequest.DEFAULT_CLIENT |
GetObjectHistoryResponse |
execute(FedoraClient fedora)
Execute this request using the supplied FedoraClient instance.
|
GetObjectHistory |
format(String format)
The format of the response.
|
addHeader, addQueryParam, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, isDefaultClientSet, removeHeader, resource, resource, resource, resource, setDefaultClient, setHeaders, xParam
public GetObjectHistory(String pid)
pid
- persistent identifier of the digital objectpublic GetObjectHistory 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 GetObjectHistoryResponse execute() throws FedoraClientException
FedoraRequest
Executes this request against the FedoraRequest.DEFAULT_CLIENT
execute
in class FedoraRequest<GetObjectHistory>
FedoraClientException
- if FedoraRequest.DEFAULT_CLIENT
is null
public GetObjectHistoryResponse execute(FedoraClient fedora) throws FedoraClientException
FedoraRequest
Execute this request using the supplied FedoraClient instance.
execute
in class FedoraRequest<GetObjectHistory>
fedora
- an instance of FedoraClientFedoraClientException
- if the HTTP status code of the response is
>= 400.Copyright © 2010-2013 MediaShelf. All Rights Reserved.