|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.servlet.util.DefaultPathMapper
public class DefaultPathMapper
Originally opied from Atlassian Seraph 1.0
Modified to store a list of keys for a mapping rather than a single value. This allows filters to be added that listen on the same path. The get() method will return the first value added if there are multiple keys matching the path, while the getAll() method returns the aggregate matches. In practice, matching a servlet path should use the get() method and matching filters should use the getAll() method.
| Constructor Summary | |
|---|---|
DefaultPathMapper()
|
|
| Method Summary | |
|---|---|
java.lang.String |
get(java.lang.String path)
Retrieve appropriate key by matching patterns with supplied path. |
java.util.Collection<java.lang.String> |
getAll(java.lang.String path)
Retrieve all mappings which match a supplied path. |
void |
put(java.lang.String key,
java.lang.String pattern)
Add a key and appropriate matching pattern. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPathMapper()
| Method Detail |
|---|
public void put(java.lang.String key,
java.lang.String pattern)
PathMapper
put in interface PathMapperpublic java.lang.String get(java.lang.String path)
PathMapper
get in interface PathMapperpublic java.util.Collection<java.lang.String> getAll(java.lang.String path)
PathMapper
getAll in interface PathMapperpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||