org.wicketstuff.jasperreports
Class JRConcreteResource<H extends IJRResourceHandler>

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 org.wicketstuff.jasperreports.JRResource
                  extended by org.wicketstuff.jasperreports.JRConcreteResource<H>
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.IRequestListener, org.apache.wicket.IResourceListener
Direct Known Subclasses:
JRCsvResource, JRHtmlResource, JRPdfResource, JRRtfResource, JRTextResource, JRXlsResource

public class JRConcreteResource<H extends IJRResourceHandler>
extends JRResource

A concrete implementation of a JRResource that delegates the common methods to a handler

Author:
cdeal
See Also:
Serialized Form

Nested Class Summary
 
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
JRConcreteResource(java.io.File report, H handler)
          Constructor for JRConcreteResource
JRConcreteResource(H handler)
          Constructor for JRConcreteResource
JRConcreteResource(IJasperReportFactory factory, H handler)
          Constructor for JRConcreteResource
JRConcreteResource(java.io.InputStream report, H handler)
          Constructor for JRConcreteResource
JRConcreteResource(java.net.URL report, H handler)
          Constructor for JRConcreteResource
 
Method Summary
 java.lang.String getContentType()
           
 java.lang.String getExtension()
          Returns the extension for the resource's file.
 H getHandler()
           
 net.sf.jasperreports.engine.JRAbstractExporter newExporter()
          Called by getData to obtain an exporter instance.
 void setHandler(H handler)
           
 
Methods inherited from class org.wicketstuff.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

JRConcreteResource

public JRConcreteResource(H handler)
Constructor for JRConcreteResource

Parameters:
handler -

JRConcreteResource

public JRConcreteResource(java.io.InputStream report,
                          H handler)
Constructor for JRConcreteResource

Parameters:
report -
handler -

JRConcreteResource

public JRConcreteResource(java.net.URL report,
                          H handler)
Constructor for JRConcreteResource

Parameters:
report -
handler -

JRConcreteResource

public JRConcreteResource(java.io.File report,
                          H handler)
Constructor for JRConcreteResource

Parameters:
report -
handler -

JRConcreteResource

public JRConcreteResource(IJasperReportFactory factory,
                          H handler)
Constructor for JRConcreteResource

Parameters:
factory -
handler -
Method Detail

getContentType

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

getExtension

public final 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()

newExporter

public final 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()

getHandler

public final H getHandler()
Returns:
Returns the handler.

setHandler

public final void setHandler(H handler)
Parameters:
handler - The handler to set.


Copyright © 2005-2010 Wicket developers. All Rights Reserved.