Interface UriIndex

All Known Implementing Classes:
JaxRSUriIndex, PrefixTemplateUriIndex

public interface UriIndex
Encapsulates the mapping of URIs to Web Scripts
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear the index
    findWebScript(String method, String uri)
    Gets a Web Script given an HTTP Method and URI
    int
    Gets size of index (i.e.
    void
    Register a URI with a Web Script
  • Method Details

    • 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 - WebScript
      uri - String
    • 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)