public abstract class HarvesterVerb
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SCHEMA_LOCATION_V2_0 |
Constructor and Description |
---|
HarvesterVerb()
Mock object creator (for unit testing purposes)
|
HarvesterVerb(java.lang.String requestURL)
Performs the OAI request
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
getDocument()
Get the OAI response as a DOM object
|
org.w3c.dom.NodeList |
getErrors()
Get the OAI errors
|
org.w3c.dom.NodeList |
getNodeList(java.lang.String xpath)
Get a NodeList containing the nodes in the response DOM for the specified
xpath
|
java.lang.String |
getRequestURL()
Get the OAI request URL for this response
|
java.lang.String |
getSchemaLocation()
Get the xsi:schemaLocation for the OAI response
|
java.lang.String |
getSingleString(java.lang.String xpath)
Get the String value for the given XPath location in the response DOM
|
void |
runVerb()
Preforms the OAI request for this OAI-PMH verb
|
java.lang.String |
toString()
Transform the document content to a string and return it.
|
public static final java.lang.String SCHEMA_LOCATION_V2_0
public HarvesterVerb()
public HarvesterVerb(java.lang.String requestURL) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, javax.xml.transform.TransformerException
requestURL
- java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
javax.xml.transform.TransformerException
public org.w3c.dom.Document getDocument()
public org.w3c.dom.NodeList getErrors() throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public org.w3c.dom.NodeList getNodeList(java.lang.String xpath) throws javax.xml.transform.TransformerException
xpath
- javax.xml.transform.TransformerException
public java.lang.String getRequestURL()
public java.lang.String getSchemaLocation()
public java.lang.String getSingleString(java.lang.String xpath) throws javax.xml.transform.TransformerException
xpath
- javax.xml.transform.TransformerException
public void runVerb() throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, javax.xml.transform.TransformerException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
javax.xml.transform.TransformerException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2020 Regents of the University of California. All Rights Reserved.