public static class DispatchGenerator.ResponseHandler extends IgnoreRootHandler
Modifier and Type | Field and Description |
---|---|
private String |
_code |
private ContentHandler |
_handler |
private String |
_parameterKey |
private List<String> |
_startedElements |
Constructor and Description |
---|
ResponseHandler(ContentHandler handler,
String parameterKey,
String code)
Create the wrapper
|
Modifier and Type | Method and Description |
---|---|
void |
endDocument() |
void |
endElement(String uri,
String loc,
String raw) |
void |
exceptionFinish()
Finish abruptly this handler to obtain a correct XML
|
void |
startDocument() |
void |
startElement(String uri,
String loc,
String raw,
Attributes a) |
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
characters, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startPrefixMapping
private final String _parameterKey
private final ContentHandler _handler
private final List<String> _startedElements
public ResponseHandler(ContentHandler handler, String parameterKey, String code)
handler
- The content handler to wrapparameterKey
- The id of the responsecode
- The status code of the responsepublic void exceptionFinish() throws SAXException
SAXException
- if an error occurredpublic void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class IgnoreRootHandler
SAXException
public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException
startElement
in interface ContentHandler
startElement
in class ContentHandlerProxy
SAXException
public void endElement(String uri, String loc, String raw) throws SAXException
endElement
in interface ContentHandler
endElement
in class ContentHandlerProxy
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class IgnoreRootHandler
SAXException