From 1ecd3e228b054dac7fa79bef1aa51c6b6ddae5c9 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Wed, 10 Feb 2010 14:34:14 +0000 Subject: [PATCH] SEC-1405: added RequestMatcher interface. --- .../security/web/util/RequestMatcher.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 web/src/main/java/org/springframework/security/web/util/RequestMatcher.java diff --git a/web/src/main/java/org/springframework/security/web/util/RequestMatcher.java b/web/src/main/java/org/springframework/security/web/util/RequestMatcher.java new file mode 100644 index 0000000000..cc071de140 --- /dev/null +++ b/web/src/main/java/org/springframework/security/web/util/RequestMatcher.java @@ -0,0 +1,21 @@ +package org.springframework.security.web.util; + +import javax.servlet.http.HttpServletRequest; + +/** + * Simple strategy to match an HttpServletRequest. + * + * @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); + +}