|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectau.com.whitesquare.waf.command.Response
au.com.whitesquare.waf.command.response.CSVDataFileResponse
Purpose:
Log History:
$Log$
Revision 1.1 2006/08/09 22:16:32 steve
Created base CSV file response.
| Field Summary |
| Fields inherited from class au.com.whitesquare.waf.command.Response |
servletContext |
| Constructor Summary | |
CSVDataFileResponse(String clientFileName)
|
|
| Method Summary | |
String |
generateContent()
Generates the column headers, all of the required rows of data, and also a total line at the end. |
String |
getClientFileName()
Retreives the file name that the client will save this file as. |
abstract int |
getColumnCount()
|
abstract String |
getColumnData(int column)
|
abstract String |
getColumnHeader(int column)
|
String |
getContentType()
Retreives the content type that the response will be configured with. |
protected abstract void |
initData()
|
static void |
main(String[] args)
|
abstract boolean |
next()
|
void |
sendResponse(HttpServletRequest req,
HttpServletResponse resp)
Writes the generated content to the responses OutputStream. |
void |
setClientFileName(String clientFileName)
Configures the name the client will treat this file as. |
void |
setContentType(String contentType)
Configures the Content Type of the response in relation to the data being returned. |
| Methods inherited from class au.com.whitesquare.waf.command.Response |
init |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CSVDataFileResponse(String clientFileName)
| Method Detail |
public String generateContent()
public static void main(String[] args)
public void sendResponse(HttpServletRequest req,
HttpServletResponse resp)
throws Exception
sendResponse in class Responsereq - resp -
Exceptionpublic String getContentType()
public void setContentType(String contentType)
contentType - The contentType to set.public String getClientFileName()
public void setClientFileName(String clientFileName)
clientFileName - The clientFileName to set.protected abstract void initData()
public abstract boolean next()
public abstract String getColumnData(int column)
public abstract String getColumnHeader(int column)
public abstract int getColumnCount()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||