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