Class GetRecord
java.lang.Object
edu.ucsb.nceas.metacat.oaipmh.harvester.HarvesterVerb
edu.ucsb.nceas.metacat.oaipmh.harvester.GetRecord
This class represents an GetRecord 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
-
Method Summary
Modifier and TypeMethodDescriptionGet the oai:identifier from the oai:headerMethods inherited from class edu.ucsb.nceas.metacat.oaipmh.harvester.HarvesterVerb
getDocument, getErrors, getNodeList, getRequestURL, getSchemaLocation, getSingleString, runVerb, toString
-
Constructor Details
-
GetRecord
public GetRecord()Mock object constructor (for unit testing purposes) -
GetRecord
public GetRecord(String baseURL, String identifier, String metadataPrefix) throws IOException, ParserConfigurationException, SAXException, TransformerException Client-side GetRecord verb constructor- Parameters:
baseURL
- baseURL of the OAI-PMH provider to be queriedidentifier
- identifier of the record that we're gettingmetadataPrefix
- the metadata prefix, e.g. "oai_pmh"- Throws:
MalformedURLException
- the baseURL is badSAXException
- the xml response is badIOException
- an I/O error occurredParserConfigurationException
TransformerException
-
-
Method Details
-
getIdentifier
Get the oai:identifier from the oai:header- Returns:
- the oai:identifier as a String
- Throws:
TransformerException
NoSuchFieldException
-