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, java.io.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(java.lang.Object dsCandidate)
returns the JRDataSource pointed by the result-type parameter "dataSource"
Accepts JRDataSource, Collection, ResultSet and Object[] |
protected void |
checkParams()
|
protected java.lang.Object |
conditionalParse(java.lang.String _param,
com.opensymphony.xwork.ActionInvocation _invocation,
java.lang.Class _type)
|
protected void |
doExecute(java.lang.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 java.lang.String |
getContentDisposition(com.opensymphony.xwork.ActionInvocation _invocation)
|
protected java.lang.String |
getDocumentName(com.opensymphony.xwork.ActionInvocation _invocation)
|
protected DynamicReport |
getDynamicReport(com.opensymphony.xwork.ActionInvocation _invocation)
|
java.lang.String |
getExportParams()
|
protected java.util.Map |
getExportParams(com.opensymphony.xwork.ActionInvocation _invocation)
|
protected java.lang.String |
getFormat(com.opensymphony.xwork.ActionInvocation _invocation)
|
java.lang.String |
getLayoutManager()
|
protected LayoutManager |
getLayOutManagerObj(com.opensymphony.xwork.ActionInvocation _invocation)
Returns the export format indicated in the result-type parameter "layoutManager" |
protected java.util.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(java.lang.String _dynamicReport)
|
void |
setExportParams(java.lang.String exportParams)
|
void |
setLayoutManager(java.lang.String layoutManager)
|
void |
setParameters(java.lang.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 java.lang.String LAYOUT_CLASSIC
- See Also:
- Constant Field Values
LAYOUT_LIST
public static final java.lang.String LAYOUT_LIST
- See Also:
- Constant Field Values
dynamicReport
protected java.lang.String dynamicReport
documentFormat
protected java.lang.String documentFormat
layoutManager
protected java.lang.String layoutManager
- The layout manager to use. Possible values are: classic, list, or a fully qualified java name
exportParams
protected java.lang.String exportParams
parameters
protected java.lang.String parameters
DJResult
public DJResult()
setDynamicReport
public void setDynamicReport(java.lang.String _dynamicReport)
doExecute
protected void doExecute(java.lang.String _finalLocation,
com.opensymphony.xwork.ActionInvocation _invocation)
throws java.lang.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:
java.lang.Exception
- if an error occurs while executing the result.
getParametersMap
protected java.util.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(java.lang.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,
java.io.IOException
- Throws:
net.sf.jasperreports.engine.JRException
java.io.IOException
getExportParams
protected java.util.Map getExportParams(com.opensymphony.xwork.ActionInvocation _invocation)
getDynamicReport
protected DynamicReport getDynamicReport(com.opensymphony.xwork.ActionInvocation _invocation)
getFormat
protected java.lang.String getFormat(com.opensymphony.xwork.ActionInvocation _invocation)
getDocumentName
protected java.lang.String getDocumentName(com.opensymphony.xwork.ActionInvocation _invocation)
getContentDisposition
protected java.lang.String getContentDisposition(com.opensymphony.xwork.ActionInvocation _invocation)
conditionalParse
protected java.lang.Object conditionalParse(java.lang.String _param,
com.opensymphony.xwork.ActionInvocation _invocation,
java.lang.Class _type)
getLayoutManager
public java.lang.String getLayoutManager()
setLayoutManager
public void setLayoutManager(java.lang.String layoutManager)
getExportParams
public java.lang.String getExportParams()
setExportParams
public void setExportParams(java.lang.String exportParams)
setParameters
public void setParameters(java.lang.String parameters)
Copyright © 2006-2011 FDV Solutions. All Rights Reserved.