Class HibernateReportLoader
- java.lang.Object
-
- org.mapfish.print.servlet.job.impl.hibernate.HibernateReportLoader
-
- All Implemented Interfaces:
ReportLoader
public class HibernateReportLoader extends java.lang.Object implements ReportLoader
Loads reports from hibernate uris.
-
-
Constructor Summary
Constructors Constructor Description HibernateReportLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(java.net.URI reportURI)
Returns true if this loader can process the provided URI.void
loadReport(java.net.URI reportURI, java.io.OutputStream out)
Reads a report from the URI and writes it to the output stream.
-
-
-
Method Detail
-
accepts
public final boolean accepts(java.net.URI reportURI)
Description copied from interface:ReportLoader
Returns true if this loader can process the provided URI.- Specified by:
accepts
in interfaceReportLoader
- Parameters:
reportURI
- the uri to test.
-
loadReport
@Transactional public final void loadReport(java.net.URI reportURI, java.io.OutputStream out) throws java.io.IOException
Description copied from interface:ReportLoader
Reads a report from the URI and writes it to the output stream.- Specified by:
loadReport
in interfaceReportLoader
- Parameters:
reportURI
- uri of the report.out
- output stream to write to.- Throws:
java.io.IOException
-
-