Class ListIdentifiers
java.lang.Object
edu.ucsb.nceas.metacat.oaipmh.harvester.HarvesterVerb
edu.ucsb.nceas.metacat.oaipmh.harvester.ListIdentifiers
This class represents an ListIdentifiers response on either the server or on
the client.
- Author:
- Duane Costa, University of New Mexico, LTER Network Office, 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
ConstructorDescriptionMock object constructor (for unit testing purposes)ListIdentifiers
(String baseURL, String resumptionToken) Client-side ListIdentifiers verb constructor (resumptionToken version)Client-side ListIdentifiers 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
-
ListIdentifiers
public ListIdentifiers()Mock object constructor (for unit testing purposes) -
ListIdentifiers
public ListIdentifiers(String baseURL, String from, String until, String metadataPrefix, String setSpec) throws IOException, ParserConfigurationException, SAXException, TransformerException Client-side ListIdentifiers verb constructor- Parameters:
baseURL
- baseURL of the OAI-PMH provider to be queriedfrom
- the from date, e.g. "2000-01-01"until
- the until date. e.g. "2009-12-31"metadataPrefix
- the metadata prefix, e.g. "oai_pmh"setSpec
- the set specifier- Throws:
MalformedURLException
- the baseURL is badSAXException
- the xml response is badIOException
- an I/O error occurredParserConfigurationException
TransformerException
-
ListIdentifiers
public ListIdentifiers(String baseURL, String resumptionToken) throws IOException, ParserConfigurationException, SAXException, TransformerException Client-side ListIdentifiers verb constructor (resumptionToken version)- Parameters:
baseURL
- baseURL of the OAI-PMH provider to be queriedresumptionToken
- the resumptionToken string, as returned by the provider server- Throws:
IOException
ParserConfigurationException
SAXException
TransformerException
-
-
Method Details
-
getResumptionToken
Get the oai:resumptionToken from the response- Returns:
- the oai:resumptionToken value
- Throws:
TransformerException
NoSuchFieldException
-