org.dspace.app.xmlui.aspect.statisticsElasticSearch
Class CSVOutputter
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.reading.AbstractReader
org.dspace.app.xmlui.aspect.statisticsElasticSearch.CSVOutputter
- All Implemented Interfaces:
- org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, org.apache.cocoon.reading.Reader, org.apache.cocoon.sitemap.SitemapModelComponent, org.apache.cocoon.sitemap.SitemapOutputComponent
public class CSVOutputter
- extends org.apache.cocoon.reading.AbstractReader
- implements org.apache.avalon.excalibur.pool.Recyclable
Provides the usage statistics in CSV form
- Author:
- Peter Dietz (pdietz84@gmail.com)
|
Field Summary |
protected Context |
context
|
protected static org.apache.log4j.Logger |
log
|
protected org.apache.cocoon.environment.Request |
request
|
protected org.apache.cocoon.environment.Response |
response
|
protected au.com.bytecode.opencsv.CSVWriter |
writer
|
| Fields inherited from class org.apache.cocoon.reading.AbstractReader |
objectModel, out, parameters, resolver, source |
| Fields inherited from interface org.apache.cocoon.reading.Reader |
ROLE |
| Methods inherited from class org.apache.cocoon.reading.AbstractReader |
getLastModified, getMimeType, setOutputStream, shouldSetContentLength |
| Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
response
protected org.apache.cocoon.environment.Response response
request
protected org.apache.cocoon.environment.Request request
context
protected Context context
writer
protected au.com.bytecode.opencsv.CSVWriter writer
CSVOutputter
public CSVOutputter()
setup
public void setup(org.apache.cocoon.environment.SourceResolver sourceResolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
throws IOException,
SAXException,
org.apache.cocoon.ProcessingException
- Specified by:
setup in interface org.apache.cocoon.sitemap.SitemapModelComponent- Overrides:
setup in class org.apache.cocoon.reading.AbstractReader
- Throws:
IOException
SAXException
org.apache.cocoon.ProcessingException
wrapInDelimitedString
public String wrapInDelimitedString(DCValue[] metadataEntries)
generate
public void generate()
throws IOException
- Specified by:
generate in interface org.apache.cocoon.reading.Reader
- Throws:
IOException
recycle
public void recycle()
- Specified by:
recycle in interface org.apache.avalon.excalibur.pool.Recyclable- Overrides:
recycle in class org.apache.cocoon.reading.AbstractReader
Copyright © 2012 DuraSpace. All Rights Reserved.