Package org.ametys.odf.oai
Class AbstractOAIResponseGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.ametys.odf.oai.AbstractOAIResponseGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,LogEnabled
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
AbstractOAIVerbGenerator
,BadVerbGenerator
Base class for all OAI responses.
-
Field Summary
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Constructor Details
-
AbstractOAIResponseGenerator
public AbstractOAIResponseGenerator()
-
-
Method Details
-
generate
-
doGenerate
Actually generates the OAI response.- Throws:
IOException
- if an I/O error occursSAXException
- if an error occursProcessingException
- if an error occurs
-
generateError
Generates SAX events representing an error.- Parameters:
errorCode
- the OAI error code.errorLabel
- the error label.- Throws:
SAXException
- if an error occurs while SAXing the OAI error.
-
getURL
Returns the base URL of the OAI repository.- Returns:
- the base URL of the OAI repository.
-