wicket.contrib.jasperreports
Class JRHtmlResource

java.lang.Object
  extended by org.apache.wicket.Resource
      extended by org.apache.wicket.markup.html.WebResource
          extended by org.apache.wicket.markup.html.DynamicWebResource
              extended by wicket.contrib.jasperreports.JRResource
                  extended by wicket.contrib.jasperreports.JRHtmlResource
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.IRequestListener, org.apache.wicket.IResourceListener

public final class JRHtmlResource
extends JRResource

Resource class for jasper reports HTML resources.

Author:
Eelco Hillenius
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class wicket.contrib.jasperreports.JRResource
JRResource.IDatabaseConnectionProvider
 
Nested classes/interfaces inherited from class org.apache.wicket.markup.html.DynamicWebResource
org.apache.wicket.markup.html.DynamicWebResource.ResourceState
 
Field Summary
 
Fields inherited from interface org.apache.wicket.IResourceListener
INTERFACE
 
Constructor Summary
JRHtmlResource()
          Construct without a report.
JRHtmlResource(java.io.File report)
          Construct.
JRHtmlResource(java.io.InputStream report)
          Construct.
JRHtmlResource(java.net.URL report)
          Construct.
 
Method Summary
 java.lang.String getContentType()
           
 java.lang.String getExtension()
          Returns the extension for the resource's file.
 net.sf.jasperreports.engine.JRAbstractExporter newExporter()
          Called by getData to obtain an exporter instance.
 
Methods inherited from class wicket.contrib.jasperreports.JRResource
getConnectionProvider, getFileName, getJasperReport, getReportDataSource, getReportParameters, getResourceState, newJasperPrint, setConnectionProvider, setFileName, setHeaders, setJasperReport, setReportDataSource, setReportParameters
 
Methods inherited from class org.apache.wicket.markup.html.DynamicWebResource
getLocale, getResourceStream
 
Methods inherited from class org.apache.wicket.markup.html.WebResource
configureResponse, getCacheDuration
 
Methods inherited from class org.apache.wicket.Resource
getParameters, invalidate, isCacheable, onResourceRequested, setCacheable, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRHtmlResource

public JRHtmlResource()
Construct without a report. You must provide a report before you can use this resource.


JRHtmlResource

public JRHtmlResource(java.io.InputStream report)
Construct.

Parameters:
report - the report input stream

JRHtmlResource

public JRHtmlResource(java.net.URL report)
Construct.

Parameters:
report - the report input stream

JRHtmlResource

public JRHtmlResource(java.io.File report)
Construct.

Parameters:
report - the report input stream
Method Detail

newExporter

public net.sf.jasperreports.engine.JRAbstractExporter newExporter()
Description copied from class: JRResource
Called by getData to obtain an exporter instance.

Specified by:
newExporter in class JRResource
Returns:
an exporter instance
See Also:
JRResource.newExporter()

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in class JRResource
Returns:
The content type of the reports
See Also:
JRResource.getContentType()

getExtension

public java.lang.String getExtension()
Description copied from class: JRResource
Returns the extension for the resource's file. This string should not contain the leading "."

Specified by:
getExtension in class JRResource
Returns:
The extension for the resource's file.
See Also:
JRResource.getExtension()


Copyright © 2005-2010. All Rights Reserved.