Sorted into search order upon entry into the Set
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Set | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | _orderIsSignificant
When _orderIsSignificant is true, the order of the MappedResources is significant and a match needs to be iteratively tried against each mapping (ordered by group then add order) to find the first that matches. |
| private final Index. | |
| private MappedResource | |
| private MappedResource | |
| private final Index. | |
| private static final Logger | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public String | |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Implements org. |
| public Set | entrySet()
Implements abstract java. Implements java. Set view of the mappings contained in this map.
|
| public E | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. null if this map contains no mapping for the key.
|
| public E | |
| public List | |
| public MatchedResource | Returns: AMatchedResource instance or null if no mappings matched.The path to match path)Find the best single match for a path. |
| private MatchedResource | Returns: AMatchedResource instance or null if no mappings matched.The path to match. path)Iterate over all mappings, returning the first that matches. |
| public List | Returns: the list of mapped resource the path matches onthe path to return matches on path)Return a list of MatchedResource matches for the specified path. |
| public List | Returns: the list of mapped resource the path matches onthe path to return matches on path)Return a list of MappedResource matches for the specified path. |
| public Iterator | |
| private boolean | |
| public E | put(String
key with which the specified value is to be associated pathSpecString, E value to be associated with the specified key resource)Overrides java. Implements java. |
| public E | put(PathSpec
key with which the specified value is to be associated pathSpec, E value to be associated with the specified key resource)Overrides java. Implements java. |
| public E | remove(Object
key whose mapping is to be removed from the map key)Overrides java. Implements java. |
| public E | |
| public boolean | |
| public void | |
| public int | size()
Overrides java. Implements java. |
| public Stream | |
| public boolean | Returns: true if the path matchesthe path to return matches on path)Implements java. |
| public String |
| _exactMap | back to summary |
|---|---|
| private final Map<String, MappedResource<E>> _exactMap | |
| _mappings | back to summary |
|---|---|
| private final Set<MappedResource<E>> _mappings | |
| _optimizedExact | back to summary |
|---|---|
| private boolean _optimizedExact | |
| _optimizedPrefix | back to summary |
|---|---|
| private boolean _optimizedPrefix | |
| _optimizedSuffix | back to summary |
|---|---|
| private boolean _optimizedSuffix | |
| _orderIsSignificant | back to summary |
|---|---|
| private boolean _orderIsSignificant When _orderIsSignificant is true, the order of the MappedResources is significant and a match needs to be iteratively tried against each mapping (ordered by group then add order) to find the first that matches. | |
| _prefixMap | back to summary |
|---|---|
| private final Index. | |
| _servletDefault | back to summary |
|---|---|
| private MappedResource<E> _servletDefault | |
| _servletRoot | back to summary |
|---|---|
| private MappedResource<E> _servletRoot | |
| _suffixMap | back to summary |
|---|---|
| private final Index. | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| PREFIX_TAIL_LEN | back to summary |
|---|---|
| private static final int PREFIX_TAIL_LEN | |
| PathMappings | back to summary |
|---|---|
| public PathMappings() | |
| canBeOptimized | back to summary |
|---|---|
| private boolean canBeOptimized(PathSpecGroup suffixGlob) | |
| dump | back to summary |
|---|---|
| public String dump() Overrides default org.
| |
| dump | back to summary |
|---|---|
| public void dump(Appendable out, String indent) throws IOException Implements org. Doc from org. Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
| |
| entrySet | back to summary |
|---|---|
| public Set Implements abstract java. Implements java. Doc from java. Returns a | |
| get | back to summary |
|---|---|
| public E get(Object key) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| get | back to summary |
|---|---|
| public E get(PathSpec pathSpec) | |
| getMappings | back to summary |
|---|---|
public List
| |
| getMatched | back to summary |
|---|---|
| public MatchedResource Find the best single match for a path. The match may be found by optimized direct lookups when possible, otherwise all mappings are iterated over and the first match returned
| |
| getMatchedIteratively | back to summary |
|---|---|
| private MatchedResource Iterate over all mappings, returning the first that matches.
| |
| getMatchedList | back to summary |
|---|---|
| public List Return a list of MatchedResource matches for the specified path.
| |
| getMatches | back to summary |
|---|---|
| public List Return a list of MappedResource matches for the specified path.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| nonServletPathSpec | back to summary |
|---|---|
| private boolean nonServletPathSpec() | |
| put | back to summary |
|---|---|
| public E put(String pathSpecString, E resource) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| put | back to summary |
|---|---|
| public E put(PathSpec pathSpec, E resource) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| remove | back to summary |
|---|---|
| public E remove(Object key) Overrides java. Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns.
| |
| remove | back to summary |
|---|---|
| public E remove(PathSpec pathSpec) | |
| removeIf | back to summary |
|---|---|
| public boolean removeIf(Predicate<MappedResource<E>> predicate) | |
| reset | back to summary |
|---|---|
| public void reset() | |
| size | back to summary |
|---|---|
| public int size() Overrides java. Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| streamResources | back to summary |
|---|---|
| public Stream | |
| test | back to summary |
|---|---|
| public boolean test(String path) Implements java. Test if the mappings contains a specified path. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of this map. The string representation
consists of a list of key-value mappings in the order returned by the
map's | |