|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.properties.SitoolsPropertyFilterHandler
public class SitoolsPropertyFilterHandler
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.
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 |
---|
public SitoolsPropertyFilterHandler()
Method Detail |
---|
public boolean match(org.restlet.Request request, org.restlet.Context context)
request
- The Request
containing the request parameterscontext
- the Context
containing the properties
(getContext().getAttributes().get(ContextAttributes.LIST_SITOOLS_PROPERTIES)
public java.util.List<AbstractPropertyFilter> getFilters()
public void setFilters(java.util.List<AbstractPropertyFilter> filters)
filters
- the filters to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |