public class OAIResponseImpl extends OAIObjectImpl implements OAIResponse
OAIObject.Node| Modifier and Type | Field and Description |
|---|---|
protected boolean |
paramsError |
protected OAIRepository |
repository
The repository to which the request will be dispatched
|
protected OAIRequest |
request
The request to the repository
|
protected java.lang.String |
resumptionToken
The resumptionToken, if any in response
|
_context, loggercontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumerHTTP_HEADER_NAME_FROM, HTTP_HEADER_NAME_USER_AGENT, NUMBER_RECORDS_PER_RESPONSE, STRING_DATEFORMAT_GRANULARITY_DAY, STRING_DATEFORMAT_GRANULARITY_SECOND| Constructor and Description |
|---|
OAIResponseImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beginOaiEnvelopeEvents()
Sends the start of the oai envelope
|
protected void |
endOaiEnvelopeEvents()
Ends the start of the oai envelope
|
protected void |
endOaiRootElement()
Ends the oai-pmh root element
|
OAIRepository |
getRepository()
Retrieves the repository
|
OAIRequest |
getRequest()
Retrieves the request
|
java.lang.String |
getResumptionToken() |
protected void |
sendRequestEvents(boolean sendRequestParams)
Sends the request event
|
void |
sendResponse()
Executes the request and sends the response (SAX flow) to the consumer using the request and the repository provided
|
protected void |
sendResponseDate()
Sends teh response date element
|
void |
setRepository(OAIRepository repository)
Establishes the class field for use
|
void |
setRequest(OAIRequest request)
Establishes the request
|
protected void |
setResumptionToken(java.lang.String rt) |
protected void |
startOaiRootElement()
Sends the oai-pmh root element
|
void |
toSAX(org.xml.sax.ContentHandler contentHandler)
Just calls sendResponse()
|
protected boolean |
verifyParameters()
Verifies the parameters against any expectations of the repository
|
contextualize, enableLogging, endElement, getContext, sendElement, sendElementContent, startElementcharacters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMappingrecycle, setConsumer, setContentHandler, setLexicalHandlergetLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMappingprotected OAIRequest request
protected OAIRepository repository
protected java.lang.String resumptionToken
protected boolean paramsError
protected void setResumptionToken(java.lang.String rt)
public java.lang.String getResumptionToken()
public void setRepository(OAIRepository repository)
setRepository in interface OAIResponsepublic OAIRepository getRepository()
getRepository in interface OAIResponsepublic void setRequest(OAIRequest request)
setRequest in interface OAIResponserequest - The request objectpublic OAIRequest getRequest()
getRequest in interface OAIResponsepublic void sendResponse()
throws org.xml.sax.SAXException
sendResponse in interface OAIResponseorg.xml.sax.SAXExceptionpublic void toSAX(org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
toSAX in interface org.apache.excalibur.xml.sax.XMLizableorg.xml.sax.SAXExceptionthis.sendResponse()protected void beginOaiEnvelopeEvents()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void endOaiEnvelopeEvents()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void startOaiRootElement()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void endOaiRootElement()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void sendResponseDate()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void sendRequestEvents(boolean sendRequestParams)
throws org.xml.sax.SAXException
sendRequestParams - Whether or not to send the parameters of the request (according to error state)org.xml.sax.SAXExceptionprotected boolean verifyParameters()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.