Class PrefixTemplateUriIndex
- java.lang.Object
-
- org.springframework.extensions.webscripts.PrefixTemplateUriIndex
-
- All Implemented Interfaces:
UriIndex
public class PrefixTemplateUriIndex extends java.lang.Object implements UriIndex
Uri index supporting simple URI templates where matching is performed on static prefix of the URI. e.g. /a/{b} is matched on /a Note: this index was used until Alfresco v3.0- Author:
- davidc
-
-
Constructor Summary
Constructors Constructor Description PrefixTemplateUriIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the indexMatchfindWebScript(java.lang.String method, java.lang.String uri)Gets a Web Script given an HTTP Method and URIintgetSize()Gets size of index (i.e.voidregisterUri(WebScript script, java.lang.String uri)Register a URI with a Web Script
-
-
-
Method Detail
-
clear
public void clear()
Description copied from interface:UriIndexClear the index
-
getSize
public int getSize()
Description copied from interface:UriIndexGets size of index (i.e. number of Uris indexed)
-
registerUri
public void registerUri(WebScript script, java.lang.String uri)
Description copied from interface:UriIndexRegister a URI with a Web Script- Specified by:
registerUriin interfaceUriIndex- Parameters:
script- WebScripturi- String
-
findWebScript
public Match findWebScript(java.lang.String method, java.lang.String uri)
Description copied from interface:UriIndexGets a Web Script given an HTTP Method and URI- Specified by:
findWebScriptin interfaceUriIndex- Parameters:
method- http methoduri- uri- Returns:
- script match (pair of script and uri that matched)
-
-