Class ListRecords
java.lang.Object
edu.ucsb.nceas.metacat.oaipmh.harvester.HarvesterVerb
edu.ucsb.nceas.metacat.oaipmh.harvester.ListRecords
This class represents an ListRecords response on either the server or on the
client
- Author:
- Jeffrey A. Young, OCLC Online Computer Library Center
-
Field Summary
Fields inherited from class edu.ucsb.nceas.metacat.oaipmh.harvester.HarvesterVerb
SCHEMA_LOCATION_V2_0 -
Constructor Summary
ConstructorsConstructorDescriptionMock object constructor (for unit testing purposes)ListRecords(String baseURL, String resumptionToken) Client-side ListRecords verb constructor (resumptionToken version)Client-side ListRecords verb constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the oai:resumptionToken from the responseMethods inherited from class edu.ucsb.nceas.metacat.oaipmh.harvester.HarvesterVerb
getDocument, getErrors, getNodeList, getRequestURL, getSchemaLocation, getSingleString, runVerb, toString
-
Constructor Details
-
ListRecords
public ListRecords()Mock object constructor (for unit testing purposes) -
ListRecords
public ListRecords(String baseURL, String from, String until, String metadataPrefix, String setSpec) throws IOException, ParserConfigurationException, SAXException, TransformerException Client-side ListRecords verb constructor- Parameters:
baseURL- the baseURL of the server to be queried- Throws:
MalformedURLException- the baseURL is badSAXException- the xml response is badIOException- an I/O error occurredParserConfigurationExceptionTransformerException
-
ListRecords
public ListRecords(String baseURL, String resumptionToken) throws IOException, ParserConfigurationException, SAXException, TransformerException Client-side ListRecords verb constructor (resumptionToken version)- Parameters:
baseURL-resumptionToken-- Throws:
IOExceptionParserConfigurationExceptionSAXExceptionTransformerException
-
-
Method Details
-
getResumptionToken
Get the oai:resumptionToken from the response- Returns:
- the oai:resumptionToken value
- Throws:
TransformerExceptionNoSuchFieldException
-