ar.com.fdvs.dj.webwork
Class DJResult
java.lang.Object
com.opensymphony.webwork.dispatcher.WebWorkResultSupport
com.opensymphony.webwork.views.jasperreports.JasperReportsResult
ar.com.fdvs.dj.webwork.DJResult
- All Implemented Interfaces:
- com.opensymphony.webwork.views.jasperreports.JasperReportConstants, com.opensymphony.webwork.WebWorkStatics, com.opensymphony.xwork.Result, Serializable
public class DJResult
- extends com.opensymphony.webwork.views.jasperreports.JasperReportsResult
- Author:
- Alejandro Gomez, Juan Alvarez
Date: Feb 22, 2007
Time: 4:32:34 PM
- See Also:
- Serialized Form
| Fields inherited from class com.opensymphony.webwork.views.jasperreports.JasperReportsResult |
contentDisposition, dataSource, delimiter, documentName, format, imageServletUrl |
| Fields inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport |
DEFAULT_PARAM, encode, location, parse |
| Fields inherited from interface com.opensymphony.webwork.views.jasperreports.JasperReportConstants |
FORMAT_CSV, FORMAT_HTML, FORMAT_PDF, FORMAT_XLS, FORMAT_XML |
| Fields inherited from interface com.opensymphony.webwork.WebWorkStatics |
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER |
|
Method Summary |
protected net.sf.jasperreports.engine.JRDataSource |
buildJRDataSource(Object dsCandidate)
returns the JRDataSource pointed by the result-type parameter "dataSource"
Accepts JRDataSource, Collection, ResultSet and Object[] |
protected void |
checkParams()
|
protected Object |
conditionalParse(String _param,
com.opensymphony.xwork.ActionInvocation _invocation,
Class _type)
|
protected void |
doExecute(String _finalLocation,
com.opensymphony.xwork.ActionInvocation _invocation)
Executes the result given a final location (jsp page, action, etc) and the action invocation
(the state in which the action was executed). |
protected String |
getContentDisposition(com.opensymphony.xwork.ActionInvocation _invocation)
|
protected String |
getDocumentName(com.opensymphony.xwork.ActionInvocation _invocation)
|
protected DynamicReport |
getDynamicReport(com.opensymphony.xwork.ActionInvocation _invocation)
|
String |
getExportParams()
|
protected Map |
getExportParams(com.opensymphony.xwork.ActionInvocation _invocation)
|
protected String |
getFormat(com.opensymphony.xwork.ActionInvocation _invocation)
|
String |
getLayoutManager()
|
protected LayoutManager |
getLayOutManagerObj(com.opensymphony.xwork.ActionInvocation _invocation)
Returns the export format indicated in the result-type parameter "layoutManager" |
protected Map |
getParametersMap(com.opensymphony.xwork.ActionInvocation _invocation)
Returns the object pointed by the result-type parameter "parameters" |
protected void |
handleConTypeRequest(javax.servlet.http.HttpServletResponse _response)
|
void |
setDynamicReport(String _dynamicReport)
|
void |
setExportParams(String exportParams)
|
void |
setLayoutManager(String layoutManager)
|
void |
setParameters(String parameters)
|
protected void |
setResponseHeaders(javax.servlet.http.HttpServletResponse _response,
com.opensymphony.xwork.ActionInvocation _invocation)
|
protected void |
writeReponse(javax.servlet.http.HttpServletRequest _request,
javax.servlet.http.HttpServletResponse _response,
net.sf.jasperreports.engine.JasperPrint _jasperPrint,
com.opensymphony.xwork.ActionInvocation _invocation)
|
| Methods inherited from class com.opensymphony.webwork.views.jasperreports.JasperReportsResult |
getImageServletUrl, setContentDisposition, setDataSource, setDelimiter, setDocumentName, setFormat, setImageServletUrl |
| Methods inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport |
conditionalParse, execute, setEncode, setLocation, setParse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LAYOUT_CLASSIC
public static final String LAYOUT_CLASSIC
- See Also:
- Constant Field Values
LAYOUT_LIST
public static final String LAYOUT_LIST
- See Also:
- Constant Field Values
dynamicReport
protected String dynamicReport
documentFormat
protected String documentFormat
layoutManager
protected String layoutManager
- The layout manager to use. Possible values are: classic, list, or a fully qualified java name
exportParams
protected String exportParams
parameters
protected String parameters
DJResult
public DJResult()
setDynamicReport
public void setDynamicReport(String _dynamicReport)
doExecute
protected void doExecute(String _finalLocation,
com.opensymphony.xwork.ActionInvocation _invocation)
throws Exception
- Executes the result given a final location (jsp page, action, etc) and the action invocation
(the state in which the action was executed). Subclasses must implement this class to handle
custom logic for result handling.
- Overrides:
doExecute in class com.opensymphony.webwork.views.jasperreports.JasperReportsResult
- Parameters:
_finalLocation - the location (jsp page, action, etc) to go to._invocation - the execution state of the action.
- Throws:
Exception - if an error occurs while executing the result.
getParametersMap
protected Map getParametersMap(com.opensymphony.xwork.ActionInvocation _invocation)
- Returns the object pointed by the result-type parameter "parameters"
- Parameters:
_invocation -
- Returns:
buildJRDataSource
protected net.sf.jasperreports.engine.JRDataSource buildJRDataSource(Object dsCandidate)
- returns the JRDataSource pointed by the result-type parameter "dataSource"
Accepts JRDataSource, Collection, ResultSet and Object[]
- Parameters:
dsCandidate -
- Returns:
getLayOutManagerObj
protected LayoutManager getLayOutManagerObj(com.opensymphony.xwork.ActionInvocation _invocation)
- Returns the export format indicated in the result-type parameter "layoutManager"
- Parameters:
_invocation -
- Returns:
handleConTypeRequest
protected void handleConTypeRequest(javax.servlet.http.HttpServletResponse _response)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
checkParams
protected void checkParams()
setResponseHeaders
protected void setResponseHeaders(javax.servlet.http.HttpServletResponse _response,
com.opensymphony.xwork.ActionInvocation _invocation)
writeReponse
protected void writeReponse(javax.servlet.http.HttpServletRequest _request,
javax.servlet.http.HttpServletResponse _response,
net.sf.jasperreports.engine.JasperPrint _jasperPrint,
com.opensymphony.xwork.ActionInvocation _invocation)
throws net.sf.jasperreports.engine.JRException,
IOException
- Throws:
net.sf.jasperreports.engine.JRException
IOException
getExportParams
protected Map getExportParams(com.opensymphony.xwork.ActionInvocation _invocation)
getDynamicReport
protected DynamicReport getDynamicReport(com.opensymphony.xwork.ActionInvocation _invocation)
getFormat
protected String getFormat(com.opensymphony.xwork.ActionInvocation _invocation)
getDocumentName
protected String getDocumentName(com.opensymphony.xwork.ActionInvocation _invocation)
getContentDisposition
protected String getContentDisposition(com.opensymphony.xwork.ActionInvocation _invocation)
conditionalParse
protected Object conditionalParse(String _param,
com.opensymphony.xwork.ActionInvocation _invocation,
Class _type)
getLayoutManager
public String getLayoutManager()
setLayoutManager
public void setLayoutManager(String layoutManager)
getExportParams
public String getExportParams()
setExportParams
public void setExportParams(String exportParams)
setParameters
public void setParameters(String parameters)
Copyright © 2006-2009 FDV Solutions. All Rights Reserved.