br.com.arsmachina.accesslogger.services.impl
Class AccessFilterImpl

java.lang.Object
  extended by br.com.arsmachina.accesslogger.services.impl.AccessFilterImpl
All Implemented Interfaces:
AccessFilter

public class AccessFilterImpl
extends Object
implements AccessFilter

Default AccessFilter implementation.

Author:
Thiago H. de Paula Figueiredo

Constructor Summary
AccessFilterImpl(List<AccessFilterRule> rules)
          Single constructor of this class.
 
Method Summary
 boolean accept(String path)
          Tells if a request to a given path must be logged or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessFilterImpl

public AccessFilterImpl(List<AccessFilterRule> rules)
Single constructor of this class.

Parameters:
rules - a List of AccessFilterRules. It cannot be null.
Method Detail

accept

public boolean accept(String path)
Description copied from interface: AccessFilter
Tells if a request to a given path must be logged or not.

Specified by:
accept in interface AccessFilter
Parameters:
path - a String. It cannot be null.
Returns:
a boolean.
See Also:
AccessFilter.accept(java.lang.String)


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