fr.ifremer.wao.ui.data
Class ExportStreamResponse
java.lang.Object
fr.ifremer.wao.ui.data.ExportStreamResponse
- All Implemented Interfaces:
- org.apache.tapestry5.StreamResponse
public abstract class ExportStreamResponse
- extends Object
- implements org.apache.tapestry5.StreamResponse
Used to render CSV file from data export.
Created: 2 févr. 2010
- Author:
- fdesbois
|
Method Summary |
String |
getContentType()
Export only for CSV file with UTF-8 encoding. |
void |
prepareResponse(org.apache.tapestry5.services.Response response)
Prepare response for rendering result file with date in filename. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.tapestry5.StreamResponse |
getStream |
filename
protected String filename
ExportStreamResponse
public ExportStreamResponse(String filename)
- Constructor with filename prefix for resulting file in response.
- Parameters:
filename - prefix
getContentType
public String getContentType()
- Export only for CSV file with UTF-8 encoding.
- Specified by:
getContentType in interface org.apache.tapestry5.StreamResponse
- Returns:
- the contentType string
prepareResponse
public void prepareResponse(org.apache.tapestry5.services.Response response)
- Prepare response for rendering result file with date in filename.
- Specified by:
prepareResponse in interface org.apache.tapestry5.StreamResponse
- Parameters:
response - to prepare
Copyright © 2009-2012 Ifremer. All Rights Reserved.