Package org.ametys.odf.oai
Class AbstractOAIVerbGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.ametys.odf.oai.AbstractOAIResponseGenerator
org.ametys.odf.oai.AbstractOAIVerbGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,LogEnabled
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
GetRecordGenerator
,IdentifyGenerator
,ListIdentifiersGenerator
,ListMetadataFormatsGenerator
,ListSetsGenerator
Base class for all OAI verb 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
Modifier and TypeMethodDescriptionprotected final void
Actually generates the OAI response.protected abstract void
Generates SAX events for the current verb.protected abstract Collection<String>
Returns a Collection af all possible parameters.protected abstract Collection<String>
Returns a Collection af all mandatory parameters.Methods inherited from class org.ametys.odf.oai.AbstractOAIResponseGenerator
generate, generateError, getURL
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
-
AbstractOAIVerbGenerator
public AbstractOAIVerbGenerator()
-
-
Method Details
-
doGenerate
Description copied from class:AbstractOAIResponseGenerator
Actually generates the OAI response.- Specified by:
doGenerate
in classAbstractOAIResponseGenerator
- Throws:
IOException
- if an I/O error occursSAXException
- if an error occursProcessingException
- if an error occurs
-
getRequiredParameters
Returns a Collection af all mandatory parameters.- Returns:
- a Collection af all mandatory parameters.
-
getAllowedParameters
Returns a Collection af all possible parameters.- Returns:
- a Collection af all possible parameters.
-
generateVerb
Generates SAX events for the current verb.- Throws:
IOException
- if an I/O error occursSAXException
- if an error occursProcessingException
- if an error occurs
-