fr.cnes.sitools.dataset.plugins.filters
Class FilterPluginsResource

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.AbstractPluginResource
                  extended by fr.cnes.sitools.dataset.filter.AbstractFilterResource
                      extended by fr.cnes.sitools.dataset.plugins.filters.FilterPluginsResource

public final class FilterPluginsResource
extends AbstractFilterResource

Represent the details of a given filter

Author:
AKKA Technologies

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
FilterPluginsResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
           
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation getFilter(org.restlet.representation.Variant variant)
          return a representation of a filter
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Response to Representation
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.representation.Variant variant)
          Gets representation according to the specified Variant if present.
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.dataset.filter.AbstractFilterResource
checkValidity, configure, getDatasetId, getFilterModelDTO, getFilterModelDTO, registerObserver, unregisterObserver
 
Methods inherited from class fr.cnes.sitools.common.AbstractPluginResource
checkValidity, fromListToMap
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, getNotificationObject, 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
 

Constructor Detail

FilterPluginsResource

public FilterPluginsResource()
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: AbstractSitoolsResource
Method implementation mandatory

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

doInit

public void doInit()
Description copied from class: SitoolsResource
Initiate the resource


getFilter

@Get
public org.restlet.representation.Representation getFilter(org.restlet.representation.Variant variant)
return a representation of a filter

Parameters:
variant - the variant needed
Returns:
the representation of a filter

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info,
                        java.lang.String path)

getRepresentation

public org.restlet.representation.Representation getRepresentation(Response response,
                                                                   org.restlet.representation.Variant variant)
Gets representation according to the specified Variant if present. If variant is null (when content negociation = false) sets the variant to the first client accepted mediaType.

Overrides:
getRepresentation in class SitoolsResource
Parameters:
response - the response to be transformed
variant - restlet variant
Returns:
Representation a restlet representation of the response

getRepresentation

public org.restlet.representation.Representation getRepresentation(Response response,
                                                                   org.restlet.data.MediaType media)
Response to Representation

Overrides:
getRepresentation in class AbstractFilterResource
Parameters:
response - the response to be transformed
media - the media type (json/xml)
Returns:
Representation the representation of the response


Copyright © 2010-2013 CNES. All Rights Reserved.