org.fao.oaipmh.requests
Class AbstractRequest

java.lang.Object
  extended by org.fao.oaipmh.requests.AbstractRequest
Direct Known Subclasses:
GetRecordRequest, IdentifyRequest, ListMetadataFormatsRequest, ListRequest

public abstract class AbstractRequest
extends java.lang.Object


Constructor Summary
AbstractRequest()
           
 
Method Summary
abstract  AbstractResponse execute()
           
 Transport getTransport()
           
abstract  java.lang.String getVerb()
           
protected  org.jdom.Element sendRequest(java.util.Map<java.lang.String,java.lang.String> params)
           
 void setTransport(Transport t)
           
 void setValidationSchema(java.io.File schemaPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRequest

public AbstractRequest()
Method Detail

setValidationSchema

public void setValidationSchema(java.io.File schemaPath)

getTransport

public Transport getTransport()

setTransport

public void setTransport(Transport t)

getVerb

public abstract java.lang.String getVerb()

execute

public abstract AbstractResponse execute()
                                  throws java.io.IOException,
                                         OaiPmhException,
                                         org.jdom.JDOMException,
                                         org.xml.sax.SAXException,
                                         java.lang.Exception
Throws:
java.io.IOException
OaiPmhException
org.jdom.JDOMException
org.xml.sax.SAXException
java.lang.Exception

sendRequest

protected org.jdom.Element sendRequest(java.util.Map<java.lang.String,java.lang.String> params)
                                throws java.io.IOException,
                                       OaiPmhException,
                                       org.jdom.JDOMException,
                                       org.xml.sax.SAXException,
                                       java.lang.Exception
Throws:
java.io.IOException
OaiPmhException
org.jdom.JDOMException
org.xml.sax.SAXException
java.lang.Exception