public class WildcardSubstitutesImpl extends Object implements WildcardSubstitutes
Constructor and Description |
---|
WildcardSubstitutesImpl(String[] aWildcardSubstitutes,
Map<String,String> aNamedWildcardSubstittutes) |
Modifier and Type | Method and Description |
---|---|
String |
getWildcardReplacement(String aWildcardName)
Returns the wildcard substitute for the wildcards in your path pattern
(see
PathMatcher.getPathPattern() ) compared to the actual path
(as of PathMatcher.toWildcardSubstitutes(String) ). |
String |
getWildcardReplacementAt(int aIndex)
Returns the wildcard substitute for the wildcards in your path pattern
(see
PathMatcher.getPathPattern() ) compared to the actual path
(as of PathMatcher.toWildcardSubstitutes(String) ). |
String[] |
getWildcardReplacements()
Returns an array of the wildcard substitutes for the wildcards in your
path pattern (see
PathMatcher.getPathPattern() ) compared to the
actual path (as of PathMatcher.toWildcardSubstitutes(String) ). |
String[] |
getWildcardReplacements(String... aWildcardNames)
Returns the wildcard substitutes for the wildcards in your path pattern
(see
PathMatcher.getPathPattern() ) compared to the actual path
(as of PathMatcher.toWildcardSubstitutes(String) ). |
String[] |
getWildcardReplacementsAt(int... aIndexes)
Returns the wildcard substitutes for the wildcards in your path pattern
(see
PathMatcher.getPathPattern() ) compared to the actual path
(as of PathMatcher.toWildcardSubstitutes(String) ). |
public String[] getWildcardReplacements()
WildcardSubstitutes
PathMatcher.getPathPattern()
) compared to the
actual path (as of PathMatcher.toWildcardSubstitutes(String)
).
The order of the wildcard substitutes aligns to the order of the
wildcards (from left to right) defined in your path pattern.getWildcardReplacements
in interface WildcardSubstitutes
public String getWildcardReplacementAt(int aIndex)
WildcardSubstitutes
PathMatcher.getPathPattern()
) compared to the actual path
(as of PathMatcher.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.getWildcardReplacementAt
in interface WildcardSubstitutes
aIndex
- The index of the wildcard in question for which to retrieve
the substitute.public String getWildcardReplacement(String aWildcardName)
WildcardSubstitutes
PathMatcher.getPathPattern()
) compared to the actual path
(as of PathMatcher.toWildcardSubstitutes(String)
). The text of
the wildcard substitute aligns to the name of the wildcard (as defined in
your path pattern).getWildcardReplacement
in interface WildcardSubstitutes
aWildcardName
- The name of the wildcard in question for which to
retrieve the substitute.public String[] getWildcardReplacements(String... aWildcardNames)
WildcardSubstitutes
PathMatcher.getPathPattern()
) compared to the actual path
(as of PathMatcher.toWildcardSubstitutes(String)
). The text of
the wildcard substitutes aligns to the order of the provided wildcard
names (as defined in your path pattern).getWildcardReplacements
in interface WildcardSubstitutes
aWildcardNames
- The names of the wildcards in question for which to
retrieve the substitutes in the order of the provided names.public String[] getWildcardReplacementsAt(int... aIndexes)
WildcardSubstitutes
PathMatcher.getPathPattern()
) compared to the actual path
(as of PathMatcher.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.getWildcardReplacementsAt
in interface WildcardSubstitutes
aIndexes
- The index of the wildcards in question for which to
retrieve the substitutes.Copyright © 2017. All rights reserved.