|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.xml.AbstractXMLProducer org.apache.cocoon.xml.AbstractXMLPipe fr.gouv.culture.oai.OAIObjectImpl fr.gouv.culture.oai.OAIResponseImpl
public class OAIResponseImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface fr.gouv.culture.oai.OAIObject |
---|
OAIObject.Node |
Field Summary | |
---|---|
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 |
Fields inherited from class fr.gouv.culture.oai.OAIObjectImpl |
---|
_context, logger |
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
Fields inherited from interface fr.gouv.culture.oai.OAIObject |
---|
HTTP_HEADER_NAME_FROM, HTTP_HEADER_NAME_USER_AGENT, NUMBER_RECORDS_PER_RESPONSE, STRING_DATEFORMAT_GRANULARITY_DAY, STRING_DATEFORMAT_GRANULARITY_SECOND |
Constructor Summary | |
---|---|
OAIResponseImpl()
|
Method Summary | |
---|---|
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 |
Methods inherited from class fr.gouv.culture.oai.OAIObjectImpl |
---|
contextualize, enableLogging, endElement, getContext, sendElement, sendElementContent, startElement |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
---|
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
---|
recycle, setConsumer, setContentHandler, setLexicalHandler |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
---|
enableLogging |
Methods inherited from interface org.apache.avalon.framework.context.Contextualizable |
---|
contextualize |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from interface org.xml.sax.ext.LexicalHandler |
---|
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
---|
setConsumer |
Field Detail |
---|
protected OAIRequest request
protected OAIRepository repository
protected java.lang.String resumptionToken
protected boolean paramsError
Constructor Detail |
---|
public OAIResponseImpl()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |