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