public final class AntPathRequestMatcher extends Object implements RequestMatcher
servletPath + pathInfo) of an HttpServletRequest. The query
string of the URL is ignored and matching is case-insensitive.AntPathMatcher| Constructor and Description |
|---|
AntPathRequestMatcher(String pattern)
Creates a matcher with the specific pattern which will match all HTTP
methods.
|
AntPathRequestMatcher(String pattern,
String httpMethod)
Creates a matcher with the supplied pattern which will match all HTTP
methods.
|
public AntPathRequestMatcher(String pattern)
pattern - the ant pattern to use for matchingpublic AntPathRequestMatcher(String pattern, String httpMethod)
pattern - the ant pattern to use for matchinghttpMethod - the HTTP method. The matches method will return false
if the incoming request doesn't have the same method.public boolean matches(javax.servlet.http.HttpServletRequest request)
matches in interface RequestMatcherrequest - the request to match against. The ant pattern will be matched
against the servletPath + pathInfo of the
request.Copyright © 2005–2013 The Beangle Software Group. All rights reserved.