Interface UriIndex
- All Known Implementing Classes:
JaxRSUriIndex,PrefixTemplateUriIndex
public interface UriIndex
Encapsulates the mapping of URIs to Web Scripts
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the indexfindWebScript(String method, String uri) Gets a Web Script given an HTTP Method and URIintgetSize()Gets size of index (i.e.voidregisterUri(WebScript script, String uri) Register a URI with a Web Script
-
Method Details
-
clear
void clear()Clear the index -
getSize
int getSize()Gets size of index (i.e. number of Uris indexed)- Returns:
- index size
-
registerUri
Register a URI with a Web Script- Parameters:
script- WebScripturi- String
-
findWebScript
Gets a Web Script given an HTTP Method and URI- Parameters:
method- http methoduri- uri- Returns:
- script match (pair of script and uri that matched)
-