fr.cnes.sitools.properties
Class SitoolsPropertyFilterHandler

java.lang.Object
  extended by fr.cnes.sitools.properties.SitoolsPropertyFilterHandler

public class SitoolsPropertyFilterHandler
extends java.lang.Object

Default Handler for Property filters Declares all the default PropertyFilters and apply

To change the list of PropertyFilter, just override this class and override the constructor. In the constructor just add new AbstractPropertyFilter to the list and that's it.

Author:
m.gond

Constructor Summary
SitoolsPropertyFilterHandler()
          Default constructor.
 
Method Summary
 java.util.List<AbstractPropertyFilter> getFilters()
          Gets the filters value
 boolean match(org.restlet.Request request, org.restlet.Context context)
          Match method that return true if the properties contained in the Context matches the request parameters false otherwise
 void setFilters(java.util.List<AbstractPropertyFilter> filters)
          Sets the value of filters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitoolsPropertyFilterHandler

public SitoolsPropertyFilterHandler()
Default constructor. Instantiate default PropertyFilters

Method Detail

match

public boolean match(org.restlet.Request request,
                     org.restlet.Context context)
Match method that return true if the properties contained in the Context matches the request parameters false otherwise

Parameters:
request - The Request containing the request parameters
context - the Context containing the properties (getContext().getAttributes().get(ContextAttributes.LIST_SITOOLS_PROPERTIES)
Returns:
true if the properties contained in the Context matches the request parameters false otherwise

getFilters

public java.util.List<AbstractPropertyFilter> getFilters()
Gets the filters value

Returns:
the filters

setFilters

public void setFilters(java.util.List<AbstractPropertyFilter> filters)
Sets the value of filters

Parameters:
filters - the filters to set


Copyright © 2010-2013 CNES. All Rights Reserved.