public class GetRecord extends HarvesterVerb
SCHEMA_LOCATION_V2_0| Constructor and Description |
|---|
GetRecord()
Mock object constructor (for unit testing purposes)
|
GetRecord(java.lang.String baseURL,
java.lang.String identifier,
java.lang.String metadataPrefix)
Client-side GetRecord verb constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIdentifier()
Get the oai:identifier from the oai:header
|
getDocument, getErrors, getNodeList, getRequestURL, getSchemaLocation, getSingleString, runVerb, toStringpublic GetRecord()
public GetRecord(java.lang.String baseURL,
java.lang.String identifier,
java.lang.String metadataPrefix)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
javax.xml.transform.TransformerException
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"MalformedURLException - the baseURL is badorg.xml.sax.SAXException - the xml response is badjava.io.IOException - an I/O error occurredjavax.xml.parsers.ParserConfigurationExceptionjavax.xml.transform.TransformerExceptionpublic java.lang.String getIdentifier()
throws javax.xml.transform.TransformerException,
java.lang.NoSuchFieldException
javax.xml.transform.TransformerExceptionjava.lang.NoSuchFieldExceptionCopyright © 2020 Regents of the University of California. All Rights Reserved.