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, logger
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
HTTP_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, startElement
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
recycle, setConsumer, setContentHandler, setLexicalHandler
getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
protected 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 OAIResponse
public OAIRepository getRepository()
getRepository
in interface OAIResponse
public void setRequest(OAIRequest request)
setRequest
in interface OAIResponse
request
- The request objectpublic OAIRequest getRequest()
getRequest
in interface OAIResponse
public void sendResponse() throws org.xml.sax.SAXException
sendResponse
in interface OAIResponse
org.xml.sax.SAXException
public void toSAX(org.xml.sax.ContentHandler contentHandler) throws org.xml.sax.SAXException
toSAX
in interface org.apache.excalibur.xml.sax.XMLizable
org.xml.sax.SAXException
this.sendResponse()
protected void beginOaiEnvelopeEvents() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void endOaiEnvelopeEvents() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void startOaiRootElement() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void endOaiRootElement() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void sendResponseDate() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected 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.SAXException
protected boolean verifyParameters() throws org.xml.sax.SAXException
org.xml.sax.SAXException
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.