public abstract class AbstractReportlet extends Object implements Reportlet
Modifier and Type | Field and Description |
---|---|
protected ReportletConf |
conf |
protected static org.slf4j.Logger |
LOG |
protected ApplicationEventPublisher |
publisher |
Constructor and Description |
---|
AbstractReportlet() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doExtract(ReportletConf conf,
ContentHandler handler,
String refDesc) |
void |
extract(ContentHandler handler,
String refDesc)
Actual data extraction for reporting.
|
void |
setConf(ReportletConf conf)
Optional configuration.
|
protected void |
setStatus(String refDesc,
String status) |
protected static final org.slf4j.Logger LOG
@Autowired protected ApplicationEventPublisher publisher
protected ReportletConf conf
public void setConf(ReportletConf conf)
Reportlet
protected abstract void doExtract(ReportletConf conf, ContentHandler handler, String refDesc) throws SAXException
SAXException
@Transactional(readOnly=true) public void extract(ContentHandler handler, String refDesc) throws SAXException
Reportlet
extract
in interface Reportlet
handler
- SAX content handler for streaming resultrefDesc
- current report status (for job reporting)SAXException
- if there is any problem in SAX handlingCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.