Interface Registry

All Known Implementing Classes:
DeclarativeRegistry

public interface Registry
Web Scripts Registry
Author:
davidc
  • Method Details

    • getPackage

      Path getPackage(String packagePath)
      Gets a Web Script Package
      Parameters:
      packagePath - String
      Returns:
      web script path representing package
    • getUri

      Path getUri(String uriPath)
      Gets a Web Script URL
      Parameters:
      uriPath - String
      Returns:
      web script path representing uri
    • getFamily

      Path getFamily(String familyPath)
      Gets a Web Script Family NOTE: - To get all families, pass / - To get a specific family, pass /{familyName}
      Parameters:
      familyPath - String
      Returns:
      web script path representing family
    • getLifecycle

      Path getLifecycle(String lifecyclePath)
      Gets a Lifecycle Family, for example, all deprecated web scripts NOTE: - To get all lifecycles, pass / - To get a specific lifecycle, pass /{lifecycleName}
      Parameters:
      lifecyclePath - String
      Returns:
      web script path representing family
    • getWebScripts

      Collection<WebScript> getWebScripts()
      Gets all Web Scripts
      Returns:
      web scripts
    • getFailures

      Map<String,String> getFailures()
      Gets all Web Script definitions that failed to register
      Returns:
      map of error by web script definition file path
    • getWebScript

      WebScript getWebScript(String id)
      Gets a Web Script by Id
      Parameters:
      id - web script id
      Returns:
      web script
    • 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)
    • reset

      void reset()
      Resets the Web Script Registry
    • getPackageDescriptionDocument

      PackageDescriptionDocument getPackageDescriptionDocument(String scriptPackage)
      Gets a package description document given a webscript package
      Parameters:
      scriptPackage - webscript package
      Returns:
      matched package description document
    • getSchemaDescriptionDocument

      SchemaDescriptionDocument getSchemaDescriptionDocument(String schemaId)
      Gets a schema description document given a schema id
      Parameters:
      schemaId - schema id
      Returns:
      matched schema description document
    • getPackageDescriptionDocuments

      Collection<PackageDescriptionDocument> getPackageDescriptionDocuments()
      Returns the whole list of package description documents
      Returns:
      list of package description documents
    • getSchemaDescriptionDocuments

      Collection<SchemaDescriptionDocument> getSchemaDescriptionDocuments()
      Returns the whole list of schema description documents
      Returns:
      list of schema description documents
    • getSchemaTypeDescriptionById

      TypeDescription getSchemaTypeDescriptionById(String typeId)
      Gets a schema type description given a schema type id
      Parameters:
      typeId - schema type id
      Returns:
      matched schema type description
    • getFailedPackageDescriptionsByPath

      Map<String,String> getFailedPackageDescriptionsByPath()
      Gets all package description documents that fail to register
      Returns:
      map of failed package description documents by path
    • getFailedSchemaDescriptionsByPath

      Map<String,String> getFailedSchemaDescriptionsByPath()
      Gets all schema description documents that fail to register
      Returns:
      map of failed schema description documents by path