planetj.magic
Class CSVRequest
java.lang.Object
|
+--planetj.html.AbstractHTMLRenderer
|
+--planetj.magic.AbstractMagicRequest
|
+--planetj.magic.MagicRequest
|
+--planetj.magic.CSVRequest
- All Implemented Interfaces:
- Cloneable, IFeature, IHTMLRenderer, IMagicRequest, IRenderer, Serializable
- public class CSVRequest
- extends MagicRequest
- implements Cloneable
Request a magic Excel request which will generate a CSV File and bring it up
in an Excel plugin within the browser.
Creation date: (12/6/2001 8:37:51 PM)
- See Also:
- Serialized Form
Constructor Summary |
CSVRequest(String pId,
javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse,
String pTableId)
CSVRequest constructor. |
Method Summary |
IMagicRequest |
execute(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
DataEngineServlet pServlet)
This method will generate CSV data from a RowCollection specified in the Constructor. |
int |
getFeatureLevel()
Gets the minimum feature level requried to execute this operation |
boolean |
isReturnToRequester()
Returns whether or not the magic request needs to be returned
to the requester. |
Methods inherited from class planetj.magic.AbstractMagicRequest |
addLinkedRequestAfter, addLinkedRequestBefore, appendUnsupportedHTMLMessage, clone, clone, equals, executeAll, getAnchorName, getBaseField, getBaseRow, getBaseRowCollection, getCurrentURI, getDefaultEndNavigationGroup, getFailMessage, getFirstRequest, getId, getKey, getLastRequest, getMagicServletURI, getMagicURI, getNextURI, getRequestAttribute, getRequestParameter, getRequestParameterValues, getSessionAttribute, getSharedSessionAttribute, getSuccessMessage, hasLinkedRequestsAfter, hasLinkedRequestsBefore, isApplicable, isCompleted, isEndNavigationGroup, isPopup, isSaveResults, isStartNewNavigationGroup, preexecute, removeRequestAttribute, removeSessionAttribute, removeSharedSessionAttribute, setAnchorName, setBaseField, setBaseRow, setBaseRowCollection, setCompleted, setEndNavigationGroup, setFailMessage, setId, setNextURI, setNextURI, setNextURIs, setPopup, setRequestGroupAttribute, setRequestPageAttribute, setRequestPersistentAttribute, setRequestTransientAttribute, setReturnToRequester, setRowEventListener, setSessionAttribute, setSessionSharedAttribute, setStartNewNavigationGroup, setSuccessMessage |
Methods inherited from interface planetj.magic.IMagicRequest |
addLinkedRequestAfter, addLinkedRequestBefore, executeAll, getBaseField, getBaseRow, getCurrentURI, getFirstRequest, getId, getKey, getLastRequest, getMagicURI, getNextURI, isCompleted, isEndNavigationGroup, isSaveResults, isStartNewNavigationGroup, setBaseField, setBaseRow, setRowEventListener |
CSVRequest
public CSVRequest(String pId,
javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse,
String pTableId)
- CSVRequest constructor. None of the params may be null
Creation date: (12/10/2001 11:54:29 PM)
execute
public IMagicRequest execute(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
DataEngineServlet pServlet)
throws CMException
- This method will generate CSV data from a RowCollection specified in the Constructor.
In addition, this method prepares the response to handle the Excel plugin by setting its content
type.
If this RowCollection hasNextRowCollection,
then all the data in the following RowCollections will be generated into XML format.
Creation date: (12/10/2001 11:48:24 PM)
- Specified by:
execute
in interface IMagicRequest
- Specified by:
execute
in class AbstractMagicRequest
CMException
getFeatureLevel
public int getFeatureLevel()
- Gets the minimum feature level requried to execute this operation
- Specified by:
getFeatureLevel
in interface IFeature
- Overrides:
getFeatureLevel
in class AbstractMagicRequest
isReturnToRequester
public boolean isReturnToRequester()
- Returns whether or not the magic request needs to be returned
to the requester. Defaults to true. If any "Magic" requests
do not require return to the requester, then this method should
be overridden.
- Specified by:
isReturnToRequester
in interface IMagicRequest
- Overrides:
isReturnToRequester
in class AbstractMagicRequest
- Returns:
- boolean