fr.cnes.sitools.resources.geojson.representations
Class GeoJsonMongoDBRepresentation

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.CharacterRepresentation
                  extended by org.restlet.representation.WriterRepresentation
                      extended by fr.cnes.sitools.resources.geojson.representations.GeoJsonMongoDBRepresentation

public class GeoJsonMongoDBRepresentation
extends org.restlet.representation.WriterRepresentation

Produce a GeoJson representation from a DatabaseRequest, a geometry column and a list of converters

Author:
m.gond

Field Summary
 
Fields inherited from class org.restlet.representation.Representation
UNKNOWN_SIZE
 
Constructor Summary
GeoJsonMongoDBRepresentation(DatabaseRequestParameters params, java.lang.String geometryColName, java.lang.String geometryTypeColName, ConverterChained converterChained, DataSet dataset, org.restlet.Context context)
          Constructor with a DatabaseRequestParameters, a geometryColName and a converterChained
 
Method Summary
 void write(java.io.Writer writer)
           
 
Methods inherited from class org.restlet.representation.WriterRepresentation
getReader, release, write
 
Methods inherited from class org.restlet.representation.CharacterRepresentation
getChannel, getStream, 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, 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

GeoJsonMongoDBRepresentation

public GeoJsonMongoDBRepresentation(DatabaseRequestParameters params,
                                    java.lang.String geometryColName,
                                    java.lang.String geometryTypeColName,
                                    ConverterChained converterChained,
                                    DataSet dataset,
                                    org.restlet.Context context)
Constructor with a DatabaseRequestParameters, a geometryColName and a converterChained

Parameters:
params - the DatabaseRequestParameters
geometryColName - the name of the column containing the geometry data
geometryTypeColName - the name of the column containing the type of the geometry data
converterChained - the converter to apply
dataset - the dataset, not used yet
context - the context, not used yet
Method Detail

write

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


Copyright © 2010-2013 CNES. All Rights Reserved.