SEC-1405: added RequestMatcher interface.

This commit is contained in:
Luke Taylor 2010-02-10 14:34:14 +00:00
parent 2f40088fe7
commit 1ecd3e228b
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package org.springframework.security.web.util;
import javax.servlet.http.HttpServletRequest;
/**
* Simple strategy to match an <tt>HttpServletRequest</tt>.
*
* @author Luke Taylor
* @since 3.0.2
*/
public interface RequestMatcher {
/**
* Decides whether the rule implemented by the strategy matches the supplied request.
*
* @param request the request to check for a match
* @return true if the request matches, false otherwise
*/
boolean matches(HttpServletRequest request);
}