Package org.ametys.core.ui.dispatcher
Class DispatchGenerator.ResponseHandler
java.lang.Object
org.apache.excalibur.xml.sax.ContentHandlerProxy
org.ametys.core.util.IgnoreRootHandler
org.ametys.core.ui.dispatcher.DispatchGenerator.ResponseHandler
- All Implemented Interfaces:
ContentHandler
,LexicalHandler
- Enclosing class:
- DispatchGenerator
Wrap the handler ignore start and end document, but adding a response tag.
-
Constructor Summary
ConstructorDescriptionResponseHandler
(ContentHandler handler, String parameterKey, String code) Create the wrapper -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
endElement
(String uri, String loc, String raw) void
Finish abruptly this handler to obtain a correct XMLvoid
void
startElement
(String uri, String loc, String raw, Attributes a) Methods inherited from class org.ametys.core.util.IgnoreRootHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
Methods inherited from class org.apache.excalibur.xml.sax.ContentHandlerProxy
characters, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startPrefixMapping
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
ResponseHandler
Create the wrapper- Parameters:
handler
- The content handler to wrapparameterKey
- The id of the responsecode
- The status code of the response
-
-
Method Details
-
exceptionFinish
Finish abruptly this handler to obtain a correct XML- Throws:
SAXException
- if an error occurred
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classIgnoreRootHandler
- Throws:
SAXException
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classContentHandlerProxy
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classContentHandlerProxy
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classIgnoreRootHandler
- Throws:
SAXException
-