Class JaxRSUriIndex
java.lang.Object
org.springframework.extensions.webscripts.JaxRSUriIndex
- All Implemented Interfaces:
UriIndex
JSR-311 (Jax-RS) URI Index
- Author:
- davidc
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
JaxRSUriIndex
public JaxRSUriIndex()
-
-
Method Details
-
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) -
findWebScript
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)
-
registerUri
Description copied from interface:UriIndexRegister a URI with a Web Script- Specified by:
registerUriin interfaceUriIndex- Parameters:
script- WebScripturi- String
-