public abstract class AbstractOAIResponseGenerator extends AbstractGenerator
objectModel, parameters, resolver, sourcecontentHandler, 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, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerpublic 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.