Interface Registry
- All Known Implementing Classes:
DeclarativeRegistry
public interface Registry
Web Scripts Registry
- Author:
- davidc
-
Method Summary
Modifier and TypeMethodDescriptionfindWebScript(String method, String uri) Gets a Web Script given an HTTP Method and URIGets all package description documents that fail to registerGets all schema description documents that fail to registerGets all Web Script definitions that failed to registerGets a Web Script Family NOTE: - To get all families, pass / - To get a specific family, pass /{familyName}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}getPackage(String packagePath) Gets a Web Script PackagegetPackageDescriptionDocument(String scriptPackage) Gets a package description document given a webscript packageReturns the whole list of package description documentsgetSchemaDescriptionDocument(String schemaId) Gets a schema description document given a schema idReturns the whole list of schema description documentsgetSchemaTypeDescriptionById(String typeId) Gets a schema type description given a schema type idGets a Web Script URLgetWebScript(String id) Gets a Web Script by IdGets all Web Scriptsvoidreset()Resets the Web Script Registry
-
Method Details
-
getPackage
Gets a Web Script Package- Parameters:
packagePath- String- Returns:
- web script path representing package
-
getUri
Gets a Web Script URL- Parameters:
uriPath- String- Returns:
- web script path representing uri
-
getFamily
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
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
Gets all Web Script definitions that failed to register- Returns:
- map of error by web script definition file path
-
getWebScript
Gets a Web Script by Id- Parameters:
id- web script id- Returns:
- web script
-
findWebScript
Gets a Web Script given an HTTP Method and URI- Parameters:
method- http methoduri- uri- Returns:
- script match (pair of script and uri that matched)
-
reset
void reset()Resets the Web Script Registry -
getPackageDescriptionDocument
Gets a package description document given a webscript package- Parameters:
scriptPackage- webscript package- Returns:
- matched package description document
-
getSchemaDescriptionDocument
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
Gets a schema type description given a schema type id- Parameters:
typeId- schema type id- Returns:
- matched schema type description
-
getFailedPackageDescriptionsByPath
Gets all package description documents that fail to register- Returns:
- map of failed package description documents by path
-
getFailedSchemaDescriptionsByPath
Gets all schema description documents that fail to register- Returns:
- map of failed schema description documents by path
-