|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.web.util.AntUrlPathMatcher
public class AntUrlPathMatcher
Ant path strategy for URL matching.
If the path consists of the pattern /**
or **
, it is treated as a universal
match, which wil match any URL.
For all other cases, Spring's AntPathMatcher
is used to perform the check for a match. See the Spring
documentation for this class for more information on the syntax details.
Constructor Summary | |
---|---|
AntUrlPathMatcher()
|
|
AntUrlPathMatcher(boolean requiresLowerCaseUrl)
|
Method Summary | |
---|---|
Object |
compile(String path)
|
String |
getUniversalMatchPattern()
Returns the path which matches every URL |
boolean |
pathMatchesUrl(Object path,
String url)
|
boolean |
requiresLowerCaseUrl()
Returns true if the matcher expects the URL to be converted to lower case before calling UrlMatcher.pathMatchesUrl(Object, String) . |
void |
setRequiresLowerCaseUrl(boolean requiresLowerCaseUrl)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AntUrlPathMatcher()
public AntUrlPathMatcher(boolean requiresLowerCaseUrl)
Method Detail |
---|
public Object compile(String path)
compile
in interface UrlMatcher
public void setRequiresLowerCaseUrl(boolean requiresLowerCaseUrl)
public boolean pathMatchesUrl(Object path, String url)
pathMatchesUrl
in interface UrlMatcher
public String getUniversalMatchPattern()
UrlMatcher
getUniversalMatchPattern
in interface UrlMatcher
public boolean requiresLowerCaseUrl()
UrlMatcher
UrlMatcher.pathMatchesUrl(Object, String)
.
requiresLowerCaseUrl
in interface UrlMatcher
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |