Class DeclarativeRegistry
java.lang.Object
org.springframework.extensions.webscripts.DeclarativeRegistry
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,Registry
public class DeclarativeRegistry
extends Object
implements Registry, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Registry of declarative (scripted/template driven) Web Scripts
- Author:
- davidc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFilename extension for webscript descriptor paths -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfindWebScript(String method, String uri) Gets a Web Script given an HTTP Method and URIorg.springframework.context.ApplicationContextGets the Application Context Changed from protected to public is for Dev Tools FreeMarker Editor pluginReturns list of package description documents that fail to registerReturns list of 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 scriptPackage) Gets a Web Script PackagegetPackageDescriptionDocument(String scriptPackage) Returns package description document with the given webscript packageReturns list of package description documentsgetSchemaDescriptionDocument(String schemaId) Returns schema description document with the given id.Returns list of schema description documentsgetSchemaTypeDescriptionById(String typeId) Returns schema type description document with given idGets a Web Script URLgetWebScript(String id) Gets a Web Script by IdGets all Web Scriptsvoidreset()Resets the Web Script RegistryvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetContainer(Container container) voidsetDefaultWebScript(String defaultWebScript) voidsetSearchPath(SearchPath searchPath) voidsetUriIndex(UriIndex uriIndex)
-
Field Details
-
WEBSCRIPT_DESC_XML
Filename extension for webscript descriptor paths- See Also:
-
-
Constructor Details
-
DeclarativeRegistry
public DeclarativeRegistry()
-
-
Method Details
-
setDefaultWebScript
- Parameters:
defaultWebScript- String
-
setUriIndex
- Parameters:
uriIndex- UriIndex
-
setSearchPath
- Parameters:
searchPath- SearchPath
-
setContainer
- Parameters:
container- Container
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()Gets the Application Context Changed from protected to public is for Dev Tools FreeMarker Editor plugin- Returns:
- application context
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
reset
public void reset()Description copied from interface:RegistryResets the Web Script Registry -
getPackage
Description copied from interface:RegistryGets a Web Script Package- Specified by:
getPackagein interfaceRegistry- Parameters:
scriptPackage- String- Returns:
- web script path representing package
-
getUri
Description copied from interface:RegistryGets a Web Script URL -
getFamily
Description copied from interface:RegistryGets a Web Script Family NOTE: - To get all families, pass / - To get a specific family, pass /{familyName} -
getWebScripts
Description copied from interface:RegistryGets all Web Scripts- Specified by:
getWebScriptsin interfaceRegistry- Returns:
- web scripts
-
getFailures
Description copied from interface:RegistryGets all Web Script definitions that failed to register- Specified by:
getFailuresin interfaceRegistry- Returns:
- map of error by web script definition file path
-
getWebScript
Description copied from interface:RegistryGets a Web Script by Id- Specified by:
getWebScriptin interfaceRegistry- Parameters:
id- web script id- Returns:
- web script
-
findWebScript
Description copied from interface:RegistryGets a Web Script given an HTTP Method and URI- Specified by:
findWebScriptin interfaceRegistry- Parameters:
method- http methoduri- uri- Returns:
- script match (pair of script and uri that matched)
-
getLifecycle
Description copied from interface:RegistryGets a Lifecycle Family, for example, all deprecated web scripts NOTE: - To get all lifecycles, pass / - To get a specific lifecycle, pass /{lifecycleName}- Specified by:
getLifecyclein interfaceRegistry- Parameters:
lifecyclePath- String- Returns:
- web script path representing family
-
getPackageDescriptionDocument
Returns package description document with the given webscript package- Specified by:
getPackageDescriptionDocumentin interfaceRegistry- Parameters:
scriptPackage- webscript package- Returns:
- list of package description document
-
getSchemaDescriptionDocument
Returns schema description document with the given id.- Specified by:
getSchemaDescriptionDocumentin interfaceRegistry- Parameters:
schemaId- schema id- Returns:
- schema description document
-
getPackageDescriptionDocuments
Returns list of package description documents- Specified by:
getPackageDescriptionDocumentsin interfaceRegistry- Returns:
- list of package description documents
-
getSchemaDescriptionDocuments
Returns list of schema description documents- Specified by:
getSchemaDescriptionDocumentsin interfaceRegistry- Returns:
- list of schema description documents
-
getSchemaTypeDescriptionById
Returns schema type description document with given id- Specified by:
getSchemaTypeDescriptionByIdin interfaceRegistry- Parameters:
typeId- id for schema description document- Returns:
- schema type description document
-
getFailedPackageDescriptionsByPath
Returns list of package description documents that fail to register- Specified by:
getFailedPackageDescriptionsByPathin interfaceRegistry- Returns:
- the failedPackageDescriptionsByPath
-
getFailedSchemaDescriptionsByPath
Returns list of schema description documents that fail to register- Specified by:
getFailedSchemaDescriptionsByPathin interfaceRegistry- Returns:
- the failedSchemaDescriptionsByPath
-