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

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 org.restlet.ext.json.JsonRepresentation
                          extended by fr.cnes.sitools.resources.geojson.representations.GeoJsonSpecificRepresentation

public class GeoJsonSpecificRepresentation
extends org.restlet.ext.json.JsonRepresentation

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
GeoJsonSpecificRepresentation(DatabaseRequestParameters params, java.lang.String geometryColName, ConverterChained converterChained, DataSet dsEntry, org.restlet.Context context, java.lang.String colUrlName, java.lang.String colTypeName, java.lang.String colIdentifierName, java.lang.String colNameName)
          Constructor with a DatabaseRequestParameters, a geometryColName and a converterChained
 
Method Summary
 void write(java.io.Writer writer)
           
 
Methods inherited from class org.restlet.ext.json.JsonRepresentation
getIndentingSize, getIndentSize, getJsonArray, getJsonObject, getJsonTokener, getSize, isIndent, isIndenting, setIndent, setIndenting, setIndentingSize, setIndentSize, toJsonArray, toJsonObject, toJsonTokener
 
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, 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

GeoJsonSpecificRepresentation

public GeoJsonSpecificRepresentation(DatabaseRequestParameters params,
                                     java.lang.String geometryColName,
                                     ConverterChained converterChained,
                                     DataSet dsEntry,
                                     org.restlet.Context context,
                                     java.lang.String colUrlName,
                                     java.lang.String colTypeName,
                                     java.lang.String colIdentifierName,
                                     java.lang.String colNameName)
Constructor with a DatabaseRequestParameters, a geometryColName and a converterChained

Parameters:
params - the DatabaseRequestParameters
geometryColName - the name of the column containing the geometry data
converterChained - the converter to apply
dsEntry - the DataSet containing the entries
context - the Context
colUrlName - the name of the column used as url for the media (in the media dataset)
colTypeName - the name of the column used as type for the media (in the media dataset)
colIdentifierName - the name of the column used as Identifier for the media (in the media dataset)
colNameName - the name of the column used as name for the media (in the media dataset)
Method Detail

write

public void write(java.io.Writer writer)
           throws java.io.IOException
Overrides:
write in class org.restlet.ext.json.JsonRepresentation
Throws:
java.io.IOException


Copyright © 2010-2013 CNES. All Rights Reserved.