fr.cnes.sitools.resources.geojson
Class AbstractJeoSearchResource

java.lang.Object
  extended by ExtendedWadlServerResource
      extended by fr.cnes.sitools.common.resource.AbstractSitoolsResource
          extended by fr.cnes.sitools.common.SitoolsResource
              extended by fr.cnes.sitools.common.resource.SitoolsParameterizedResource
                  extended by fr.cnes.sitools.resources.geojson.AbstractJeoSearchResource
All Implemented Interfaces:
IResource
Direct Known Subclasses:
JeoSearchResourceMongoDB, JeoSearchResourcePostGis

public abstract class AbstractJeoSearchResource
extends SitoolsParameterizedResource

Abstract class for JeoSearch Resource

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractJeoSearchResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
abstract  org.restlet.representation.Representation getRepresentation(DatabaseRequestParameters params, java.lang.String geometryColName, ConverterChained converterChained, DataSet dataset, org.restlet.Context context)
          Get a representation
 org.restlet.representation.Representation search()
          Handle the search
 
Methods inherited from class fr.cnes.sitools.common.resource.SitoolsParameterizedResource
addStandardResponseInfo, doInit, getId, getModel, getOverrideParameterValue, getOverrideParameterValueObject, getOverrideParams, getParameterValue, getParent, setId, setModel, setParent, sitoolsDescribe
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting, trace, trace
 
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource
getMediaType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.cnes.sitools.common.model.IResource
getDescription, getName
 

Constructor Detail

AbstractJeoSearchResource

public AbstractJeoSearchResource()
Method Detail

search

@Get
public org.restlet.representation.Representation search()
Handle the search

Returns:
a Representation representing the search as GeoJSON

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)

getRepresentation

public abstract org.restlet.representation.Representation getRepresentation(DatabaseRequestParameters params,
                                                                            java.lang.String geometryColName,
                                                                            ConverterChained converterChained,
                                                                            DataSet dataset,
                                                                            org.restlet.Context context)
Get a representation

Parameters:
params - the DatabaseRequestParameters
geometryColName - the name of the Geometry column
converterChained - the list of converters
dataset - the dataset
context - the context
Returns:
a representation


Copyright © 2010-2013 CNES. All Rights Reserved.