org.springframework.extensions.webscripts
Interface UriIndex

All Known Implementing Classes:
JaxRSUriIndex, PrefixTemplateUriIndex

public interface UriIndex

Encapsulates the mapping of URIs to Web Scripts


Method Summary
 void clear()
          Clear the index
 Match findWebScript(String method, String uri)
          Gets a Web Script given an HTTP Method and URI
 int getSize()
          Gets size of index (i.e.
 void registerUri(WebScript script, 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,
                 String uri)
Register a URI with a Web Script

Parameters:
script -
uri -

findWebScript

Match findWebScript(String method,
                    String uri)
Gets a Web Script given an HTTP Method and URI

Parameters:
method - http method
uri - uri
Returns:
script match (pair of script and uri that matched)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.