public class GetNextPID extends FedoraRequest<GetNextPID>
Constructor and Description |
---|
GetNextPID() |
Modifier and Type | Method and Description |
---|---|
GetNextPIDResponse |
execute()
Executes this request against the
FedoraRequest.DEFAULT_CLIENT |
GetNextPIDResponse |
execute(FedoraClient fedora)
Execute this request using the supplied FedoraClient instance.
|
GetNextPID |
format(String format)
The format of the response.
|
GetNextPID |
namespace(String namespace)
Namespace of the returned pid(s).
|
GetNextPID |
numPIDs(int numPIDs)
Set the number of pids this request should return.
|
addHeader, addQueryParam, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, isDefaultClientSet, removeHeader, resource, resource, resource, resource, setDefaultClient, setHeaders, xParam
public GetNextPID 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 GetNextPID namespace(String namespace)
namespace
- public GetNextPID numPIDs(int numPIDs)
numPIDs
- the number of pids to return.public GetNextPIDResponse execute() throws FedoraClientException
FedoraRequest
Executes this request against the FedoraRequest.DEFAULT_CLIENT
execute
in class FedoraRequest<GetNextPID>
FedoraClientException
- if FedoraRequest.DEFAULT_CLIENT
is null
public GetNextPIDResponse execute(FedoraClient fedora) throws FedoraClientException
FedoraRequest
Execute this request using the supplied FedoraClient instance.
execute
in class FedoraRequest<GetNextPID>
fedora
- an instance of FedoraClientFedoraClientException
- if the HTTP status code of the response is
>= 400.Copyright © 2010-2013 MediaShelf. All Rights Reserved.