|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.oaipmh.harvester.HarvesterVerb
public abstract class HarvesterVerb
HarvesterVerb is the parent class for each of the OAI verbs.
| Field Summary | |
|---|---|
static java.lang.String |
SCHEMA_LOCATION_V2_0
|
| Constructor Summary | |
|---|---|
HarvesterVerb()
Mock object creator (for unit testing purposes) |
|
HarvesterVerb(java.lang.String requestURL)
Performs the OAI request |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SCHEMA_LOCATION_V2_0
| Constructor Detail |
|---|
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| Method Detail |
|---|
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.TransformerExceptionpublic 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.TransformerExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||