public abstract class AbstractOAIResponseGenerator extends AbstractGenerator
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
AbstractOAIResponseGenerator() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doGenerate()
Actually generates the OAI response.
|
void |
generate() |
protected void |
generateError(String errorCode,
String errorLabel)
Generates SAX events representing an error.
|
protected String |
getURL()
Returns the base URL of the OAI repository.
|
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
public AbstractOAIResponseGenerator()
public final void generate() throws IOException, SAXException, ProcessingException
protected abstract void doGenerate() throws IOException, SAXException, ProcessingException
IOException
- if an I/O error occursSAXException
- if an error occursProcessingException
- if an error occursprotected void generateError(String errorCode, String errorLabel) throws SAXException
errorCode
- the OAI error code.errorLabel
- the error label.SAXException
- if an error occurs while SAXing the OAI error.