Interface UriIndex
-
- All Known Implementing Classes:
JaxRSUriIndex,PrefixTemplateUriIndex
public interface UriIndexEncapsulates the mapping of URIs to Web Scripts
-
-
Method Summary
All Methods Instance Methods Abstract 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
void clear()
Clear the index
-
getSize
int getSize()
Gets size of index (i.e. number of Uris indexed)- Returns:
- index size
-
registerUri
void registerUri(WebScript script, java.lang.String uri)
Register a URI with a Web Script- Parameters:
script- WebScripturi- String
-
findWebScript
Match findWebScript(java.lang.String method, java.lang.String uri)
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)
-
-