fr.cnes.sitools.resources.csv
Class CsvExportRepresentation

java.lang.Object
  extended by org.restlet.representation.Variant
      extended by org.restlet.representation.RepresentationInfo
          extended by org.restlet.representation.Representation
              extended by org.restlet.representation.StreamRepresentation
                  extended by org.restlet.representation.OutputRepresentation
                      extended by fr.cnes.sitools.resources.csv.CsvExportRepresentation

public class CsvExportRepresentation
extends org.restlet.representation.OutputRepresentation

Create a HTML representation of a list of records

Author:
m.gond

Field Summary
 
Fields inherited from class org.restlet.representation.Representation
UNKNOWN_SIZE
 
Constructor Summary
CsvExportRepresentation(org.restlet.data.MediaType mediaType)
          Default constructor
CsvExportRepresentation(org.restlet.data.MediaType mediaType, DatabaseRequestParameters params, ConverterChained converters, org.restlet.Context context, boolean noRecords)
          Constructor with DatabaseRequestParameters and title
 
Method Summary
 void write(java.io.OutputStream out)
           
 
Methods inherited from class org.restlet.representation.OutputRepresentation
getStream
 
Methods inherited from class org.restlet.representation.StreamRepresentation
getChannel, getReader, write, write
 
Methods inherited from class org.restlet.representation.Representation
checkDigest, checkDigest, computeDigest, createEmpty, exhaust, getAvailableSize, getDigest, getDisposition, getDownloadName, getExpirationDate, getRange, getSize, getText, isAvailable, isDownloadable, isTransient, release, setAvailable, setDigest, setDisposition, setDownloadable, setDownloadName, setExpirationDate, setRange, setSize, setTransient
 
Methods inherited from class org.restlet.representation.RepresentationInfo
getModificationDate, getTag, setModificationDate, setTag
 
Methods inherited from class org.restlet.representation.Variant
createClientInfo, equals, getCharacterSet, getEncodings, getIdentifier, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setIdentifier, setIdentifier, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CsvExportRepresentation

public CsvExportRepresentation(org.restlet.data.MediaType mediaType)
Default constructor

Parameters:
mediaType - the mediaType needed

CsvExportRepresentation

public CsvExportRepresentation(org.restlet.data.MediaType mediaType,
                               DatabaseRequestParameters params,
                               ConverterChained converters,
                               org.restlet.Context context,
                               boolean noRecords)
Constructor with DatabaseRequestParameters and title

Parameters:
mediaType - the mediaType needed
params - the DatabaseRequestParameters
converters - the converters
context - the context
noRecords - true to return no records, false otherwise
Method Detail

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Specified by:
write in class org.restlet.representation.Representation
Throws:
java.io.IOException


Copyright © 2010-2013 CNES. All Rights Reserved.