br.com.arsmachina.accesslogger.services
Interface AccessFilterRule

All Known Implementing Classes:
DefaultAccessFilterRule, URLEndingAccessFilterRule

public interface AccessFilterRule

Interface that defines a single rule whether a request to a given path must be logged or not.

Author:
Thiago H. de Paula Figueiredo

Method Summary
 Boolean accept(String path)
          Tells if a request to a given path must be logged or not.
 

Method Detail

accept

Boolean accept(String path)
Tells if a request to a given path must be logged or not. This method can return null to say it cannot decide to log to request or not, leaving the decision for other AccessFilterRules.

Parameters:
path - a String. It cannot be null.
Returns:
true, false or null.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.