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, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.
-