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, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected final voidActually generates the OAI response.protected abstract voidGenerates 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, getURLMethods 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
- 
AbstractOAIVerbGenerator
public AbstractOAIVerbGenerator() 
 - 
 - 
Method Details
- 
doGenerate
Description copied from class:AbstractOAIResponseGeneratorActually generates the OAI response.- Specified by:
 doGeneratein 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
 
 -