|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.surf.uri.UriTemplateMappingIndex
public class UriTemplateMappingIndex
Index of application URI template mappings. One or more URI templates can map to a single entry url. Each template uses a simple form of the JAX-RS JSR-311 URI Template format - only basic variables are specified in the URI template for matching. Example config:
/site/{site}/dashboard
/page/sites/{site}/dashboard
/user/{user}
/user/{user}/mydashboard
/page/users/{user}/dashboard
/user/{user}/wiki/{path}
/page/users/tools/wiki?user={user}&article={path}
| Constructor Summary | |
|---|---|
UriTemplateMappingIndex(ConfigElement config)
Constructor |
|
| Method Summary | |
|---|---|
Map<String,String> |
findMatch(String uri)
Search the URI index to locale a match for the specified URI. |
String |
findMatchAndReplace(String uri)
Search the URI index to locate a match for the specified URI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UriTemplateMappingIndex(ConfigElement config)
config - ConfigElement pointing to the | Method Detail |
|---|
public String findMatchAndReplace(String uri)
uri - URI to match against the URI Templates in the index
public Map<String,String> findMatch(String uri)
uri - URI to match against the URI Templates in the index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||