org.springframework.extensions.webscripts
Class JaxRSUriIndex

java.lang.Object
  extended by org.springframework.extensions.webscripts.JaxRSUriIndex
All Implemented Interfaces:
UriIndex

public class JaxRSUriIndex
extends Object
implements UriIndex

JSR-311 (Jax-RS) URI Index

Author:
davidc

Constructor Summary
JaxRSUriIndex()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxRSUriIndex

public JaxRSUriIndex()
Method Detail

clear

public void clear()
Description copied from interface: UriIndex
Clear the index

Specified by:
clear in interface UriIndex

getSize

public int getSize()
Description copied from interface: UriIndex
Gets size of index (i.e. number of Uris indexed)

Specified by:
getSize in interface UriIndex
Returns:
index size

findWebScript

public Match findWebScript(String method,
                           String uri)
Description copied from interface: UriIndex
Gets a Web Script given an HTTP Method and URI

Specified by:
findWebScript in interface UriIndex
Parameters:
method - http method
uri - uri
Returns:
script match (pair of script and uri that matched)

registerUri

public void registerUri(WebScript script,
                        String uri)
Description copied from interface: UriIndex
Register a URI with a Web Script

Specified by:
registerUri in interface UriIndex


Copyright © 2009 SpringSource, Inc. All Rights Reserved.