|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.util.AntPathMatcher
eu.etaxonomy.cdm.remote.controller.util.CdmAntPathMatcher
public class CdmAntPathMatcher
| Field Summary |
|---|
| Fields inherited from class org.springframework.util.AntPathMatcher |
|---|
DEFAULT_PATH_SEPARATOR |
| Constructor Summary | |
|---|---|
CdmAntPathMatcher()
|
|
| Method Summary | |
|---|---|
String |
combine(String pattern1,
String pattern2)
Changes the combination behavior of the overridden method AntPathMatcher.combine(String, String) only a little but quite
useful bit: |
| Methods inherited from class org.springframework.util.AntPathMatcher |
|---|
doMatch, extractPathWithinPattern, extractUriTemplateVariables, getPatternComparator, isPattern, match, matchStart, setPathSeparator, setTrimTokens |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CdmAntPathMatcher()
| Method Detail |
|---|
public String combine(String pattern1,
String pattern2)
AntPathMatcher.combine(String, String) only a little but quite
useful bit:
If the pattern2 is an absolute path, that is it starts with
an slash character, the pattern2 overrules pattern1 and no
combined at all is performed. I such case the method just returns
pattern2
For example:
| Pattern 1 | Pattern 2 | Result |
|---|---|---|
| /hotels | null | /hotels |
null | /hotels | /hotels |
| /hotels | /bookings | /bookings |
| /hotels | bookings | /hotels/bookings |
| /hotels/* | bookings | /hotels/bookings |
| /hotels/* | /bookings | /bookings |
| /hotels/** | /bookings | /bookings |
| /hotels/** | bookings | /hotels/**/bookings |
| /hotels | {hotel} | /hotels/{hotel} |
| /hotels/* | {hotel} | /hotels/{hotel} |
| /hotels/** | {hotel} | /hotels/**/{hotel} |
| /*.html | hotels.html | /hotels.html |
| /*.html | /hotels.html | /hotels.html |
| /*.html | hotels | /hotels.html |
| /*.html | /hotels | /hotels |
| /*.html | /*.txt | IllegalArgumentException |
combine in interface org.springframework.util.PathMatchercombine in class org.springframework.util.AntPathMatcherpattern1 - pattern2 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||