com.aspose.cells.jasperreports
Class ACReportXlsExporter

java.lang.Object
  extended by org.springframework.webflow.action.AbstractAction
      extended by org.springframework.webflow.action.MultiAction
          extended by com.jaspersoft.jasperserver.war.action.AbstractReportExporter
              extended by com.aspose.cells.jasperreports.ACReportXlsExporter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.webflow.execution.Action

public class ACReportXlsExporter
extends com.jaspersoft.jasperserver.war.action.AbstractReportExporter

Exports a JasperReports document to XLS format. Uses the XLS 97-2003 Specification (compatible with MS Excel 97 - 2003 and 2007).


Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.webflow.action.MultiAction
org.springframework.webflow.action.MultiAction.MethodResolver
 
Field Summary
 
Fields inherited from class org.springframework.webflow.action.AbstractAction
logger
 
Constructor Summary
ACReportXlsExporter()
           
 
Method Summary
 void export(org.springframework.webflow.execution.RequestContext context, com.jaspersoft.jasperserver.api.common.domain.ExecutionContext executionContext, java.lang.String reportUnitURI, java.util.Map baseParameters)
          Exports a report in the XLS format.
protected  java.lang.String getContentType(org.springframework.webflow.execution.RequestContext context)
           
protected  java.lang.String getDownloadFileExtension()
           
 ACXlsExportParametersBean getExportParameters()
          Returns the exportParameters.
 com.jaspersoft.jasperserver.api.engine.jasperreports.common.ExportParameters getExportParameters(org.springframework.webflow.execution.RequestContext context)
          Returns the exportParameters.
protected  void setAdditionalResponseHeaders(org.springframework.webflow.execution.RequestContext context, javax.servlet.http.HttpServletResponse response)
           
 void setExportParameters(ACXlsExportParametersBean exportParameters)
          Set the exportParameters.
 
Methods inherited from class com.jaspersoft.jasperserver.war.action.AbstractReportExporter
export, exportBuffered, exportToStream, getDownloadFilename, getExecutionContext, getFilename, getFilename, getFlowAttributeJasperPrintName, getFlowAttributeReportUnitURI, getHttpUtils, getInitialMemoryBufferSize, getJasperPrintAccessor, getMemoryThreshold, getReportName, isSetResponseContentLength, setFlowAttributeJasperPrintName, setFlowAttributeReportUnitURI, setHttpUtils, setInitialMemoryBufferSize, setJasperPrintAccessor, setMemoryThreshold, setSetResponseContentLength
 
Methods inherited from class org.springframework.webflow.action.MultiAction
doExecute, getMethodResolver, setMethodResolver, setTarget
 
Methods inherited from class org.springframework.webflow.action.AbstractAction
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACReportXlsExporter

public ACReportXlsExporter()
Method Detail

getExportParameters

public ACXlsExportParametersBean getExportParameters()
Returns the exportParameters.

Returns:
Returns the exportParameters.

getExportParameters

public com.jaspersoft.jasperserver.api.engine.jasperreports.common.ExportParameters getExportParameters(org.springframework.webflow.execution.RequestContext context)
Returns the exportParameters.

Specified by:
getExportParameters in class com.jaspersoft.jasperserver.war.action.AbstractReportExporter
Returns:
Returns the exportParameters.

setExportParameters

public void setExportParameters(ACXlsExportParametersBean exportParameters)
Set the exportParameters.

Parameters:
exportParameters - The exportParameters to set.

export

public void export(org.springframework.webflow.execution.RequestContext context,
                   com.jaspersoft.jasperserver.api.common.domain.ExecutionContext executionContext,
                   java.lang.String reportUnitURI,
                   java.util.Map baseParameters)
            throws net.sf.jasperreports.engine.JRException,
                   com.jaspersoft.jasperserver.api.JSException
Exports a report in the XLS format.

Specified by:
export in class com.jaspersoft.jasperserver.war.action.AbstractReportExporter
Throws:
net.sf.jasperreports.engine.JRException
com.jaspersoft.jasperserver.api.JSException

getContentType

protected java.lang.String getContentType(org.springframework.webflow.execution.RequestContext context)
Specified by:
getContentType in class com.jaspersoft.jasperserver.war.action.AbstractReportExporter

setAdditionalResponseHeaders

protected void setAdditionalResponseHeaders(org.springframework.webflow.execution.RequestContext context,
                                            javax.servlet.http.HttpServletResponse response)
Overrides:
setAdditionalResponseHeaders in class com.jaspersoft.jasperserver.war.action.AbstractReportExporter

getDownloadFileExtension

protected java.lang.String getDownloadFileExtension()
Overrides:
getDownloadFileExtension in class com.jaspersoft.jasperserver.war.action.AbstractReportExporter