Class JaxRSUriIndex

java.lang.Object
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 Details

    • JaxRSUriIndex

      public JaxRSUriIndex()
  • Method Details

    • 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
      Parameters:
      script - WebScript
      uri - String