|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.DeclarativeRegistry
public class DeclarativeRegistry
Registry of declarative (scripted/template driven) Web Scripts
Constructor Summary | |
---|---|
DeclarativeRegistry()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
Match |
findWebScript(String method,
String uri)
Gets a Web Script given an HTTP Method and URI |
protected org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the Application Context |
Map<String,String> |
getFailures()
Gets all Web Script definitions that failed to register |
Path |
getFamily(String scriptUri)
Gets a Web Script Family NOTE: - To get all families, pass / - To get a specific family, pass /{familyName} |
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} |
Path |
getPackage(String scriptPackage)
Gets a Web Script Package |
Path |
getUri(String scriptUri)
Gets a Web Script URL |
WebScript |
getWebScript(String id)
Gets a Web Script by Id |
Collection<WebScript> |
getWebScripts()
Gets all Web Scripts |
void |
reset()
Resets the Web Script Registry |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setContainer(Container container)
|
void |
setDefaultWebScript(String defaultWebScript)
|
void |
setSearchPath(SearchPath searchPath)
|
void |
setUriIndex(UriIndex uriIndex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeclarativeRegistry()
Method Detail |
---|
public void setDefaultWebScript(String defaultWebScript)
defaultWebScript
- public void setUriIndex(UriIndex uriIndex)
uriIndex
- public void setSearchPath(SearchPath searchPath)
searchPath
- public void setContainer(Container container)
container
- public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
protected org.springframework.context.ApplicationContext getApplicationContext()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void reset()
Registry
reset
in interface Registry
public Path getPackage(String scriptPackage)
Registry
getPackage
in interface Registry
public Path getUri(String scriptUri)
Registry
getUri
in interface Registry
public Path getFamily(String scriptUri)
Registry
getFamily
in interface Registry
public Collection<WebScript> getWebScripts()
Registry
getWebScripts
in interface Registry
public Map<String,String> getFailures()
Registry
getFailures
in interface Registry
public WebScript getWebScript(String id)
Registry
getWebScript
in interface Registry
id
- web script id
public Match findWebScript(String method, String uri)
Registry
findWebScript
in interface Registry
method
- http methoduri
- uri
public Path getLifecycle(String lifecyclePath)
Registry
getLifecycle
in interface Registry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |