There is one special parameters named method. When a filter is specified to run with a service, this filter will be executed for all service methods. With the method parameter we can specify this filter will only run for a detemined method. If no parameter named method is specified yn the deployment.props file, it will be executed by default for all methods.
We can modify the previous example to allow filter one to run with methods “getName” and “getAll” and filter two to run with method “getName”. Notice that other methods in the DBEService will run without filters.
# filters filters= one, two # here we can specify paramteres for filter “one” one.name=nombre one.count=8080 # We specify filter “one” must only run with getName and getAll methods one.method=getAll, getName # We specify filter “two” must only run with getName method two.method=getAll