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, toString
public 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.ParserConfigurationException
javax.xml.transform.TransformerException
public java.lang.String getIdentifier() throws javax.xml.transform.TransformerException, java.lang.NoSuchFieldException
javax.xml.transform.TransformerException
java.lang.NoSuchFieldException
Copyright © 2023 Regents of the University of California. All Rights Reserved.