public abstract class AbstractOAIVerbGenerator extends AbstractOAIResponseGenerator
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
AbstractOAIVerbGenerator() |
Modifier and Type | Method and Description |
---|---|
private boolean |
_hasBadArguments(Collection<String> requiredParameters,
Collection<String> allowedParameters) |
protected void |
doGenerate()
Actually generates the OAI response.
|
protected abstract void |
generateVerb()
Generates SAX events for the current verb.
|
protected abstract Collection<String> |
getAllowedParameters()
Returns a Collection af all possible parameters.
|
protected abstract Collection<String> |
getRequiredParameters()
Returns a Collection af all mandatory parameters.
|
generate, generateError, getURL
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
public AbstractOAIVerbGenerator()
protected final void doGenerate() throws IOException, SAXException, ProcessingException
AbstractOAIResponseGenerator
doGenerate
in class AbstractOAIResponseGenerator
IOException
- if an I/O error occursSAXException
- if an error occursProcessingException
- if an error occursprotected abstract Collection<String> getRequiredParameters()
protected abstract Collection<String> getAllowedParameters()
protected abstract void generateVerb() throws IOException, SAXException, ProcessingException
IOException
- if an I/O error occursSAXException
- if an error occursProcessingException
- if an error occursprivate boolean _hasBadArguments(Collection<String> requiredParameters, Collection<String> allowedParameters)