Package org.refcodes.matcher
Interface WildcardSubstitutes
-
- All Known Implementing Classes:
WildcardSubstitutesImpl
public interface WildcardSubstitutes
TheWildcardSubstitutes
contains all information available regarding substitution of wildcards using thePathMatcher
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getWildcardReplacement(java.lang.String aWildcardName)
Returns the wildcard substitute for the wildcards in your path pattern (seePathMatcher.getPathPattern()
) compared to the actual path (as ofPathMatcher.toWildcardSubstitutes(String)
).java.lang.String
getWildcardReplacementAt(int aIndex)
Returns the wildcard substitute for the wildcards in your path pattern (seePathMatcher.getPathPattern()
) compared to the actual path (as ofPathMatcher.toWildcardSubstitutes(String)
).java.lang.String[]
getWildcardReplacements()
Returns an array of the wildcard substitutes for the wildcards in your path pattern (seePathMatcher.getPathPattern()
) compared to the actual path (as ofPathMatcher.toWildcardSubstitutes(String)
).java.lang.String[]
getWildcardReplacements(java.lang.String... aWildcardNames)
Returns the wildcard substitutes for the wildcards in your path pattern (seePathMatcher.getPathPattern()
) compared to the actual path (as ofPathMatcher.toWildcardSubstitutes(String)
).java.lang.String[]
getWildcardReplacementsAt(int... aIndexes)
Returns the wildcard substitutes for the wildcards in your path pattern (seePathMatcher.getPathPattern()
) compared to the actual path (as ofPathMatcher.toWildcardSubstitutes(String)
).
-
-
-
Method Detail
-
getWildcardReplacements
java.lang.String[] getWildcardReplacements()
Returns an array of the wildcard substitutes for the wildcards in your path pattern (seePathMatcher.getPathPattern()
) compared to the actual path (as ofPathMatcher.toWildcardSubstitutes(String)
). The order of the wildcard substitutes aligns to the order of the wildcards (from left to right) defined in your path pattern.- Returns:
- The text substituting the wildcards in the order of the wildcards being substituted or null if there are none such substitutes.
-
getWildcardReplacementAt
java.lang.String getWildcardReplacementAt(int aIndex)
Returns the wildcard substitute for the wildcards in your path pattern (seePathMatcher.getPathPattern()
) compared to the actual path (as ofPathMatcher.toWildcardSubstitutes(String)
). The text of the wildcard substitute aligns to the index of the wildcard (from left to right) as defined in your path pattern.- Parameters:
aIndex
- The index of the wildcard in question for which to retrieve the substitute.- Returns:
- The text substituting the wildcard at the given path pattern's wildcard index or null if there is none such substitute.
-
getWildcardReplacementsAt
java.lang.String[] getWildcardReplacementsAt(int... aIndexes)
Returns the wildcard substitutes for the wildcards in your path pattern (seePathMatcher.getPathPattern()
) compared to the actual path (as ofPathMatcher.toWildcardSubstitutes(String)
). The text of the wildcard substitutes aligns to the index of the wildcards (from left to right) as defined in your path pattern.- Parameters:
aIndexes
- The index of the wildcards in question for which to retrieve the substitutes.- Returns:
- The text substituting the wildcards at the given path pattern's wildcard indexes or null if there is none such substitute.
-
getWildcardReplacement
java.lang.String getWildcardReplacement(java.lang.String aWildcardName)
Returns the wildcard substitute for the wildcards in your path pattern (seePathMatcher.getPathPattern()
) compared to the actual path (as ofPathMatcher.toWildcardSubstitutes(String)
). The text of the wildcard substitute aligns to the name of the wildcard (as defined in your path pattern).- Parameters:
aWildcardName
- The name of the wildcard in question for which to retrieve the substitute.- Returns:
- The text substituting the wildcard with the given path pattern's wildcard name or null if there is none such substitute.
-
getWildcardReplacements
java.lang.String[] getWildcardReplacements(java.lang.String... aWildcardNames)
Returns the wildcard substitutes for the wildcards in your path pattern (seePathMatcher.getPathPattern()
) compared to the actual path (as ofPathMatcher.toWildcardSubstitutes(String)
). The text of the wildcard substitutes aligns to the order of the provided wildcard names (as defined in your path pattern).- Parameters:
aWildcardNames
- The names of the wildcards in question for which to retrieve the substitutes in the order of the provided names.- Returns:
- The text substituting the wildcard with the given path pattern's wildcard names or null if there are none such substitute.
-
-