|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.webscripts.ScriptProcessorRegistry
public class ScriptProcessorRegistry
Registry of Script Processors If no processors are registered, the default script processor is the javascript processor.
| Constructor Summary | |
|---|---|
ScriptProcessorRegistry()
|
|
| Method Summary | |
|---|---|
String |
findValidScriptPath(String path)
Returns a variation on the provided path that exists and is processable by one of the processors in this registry. |
protected ScriptProcessor |
getDefaultScriptProcessor()
Gets the default script processor. |
String |
getExtensionForProcessor(ScriptProcessor scriptProcessor)
Gets the extension for given processor. |
String[] |
getRegisteredExtensions()
Returns the extensions with registered processors |
ScriptProcessor |
getScriptProcessor(ScriptContent scriptContent)
Returns the best fit script processor for the given script content object. |
ScriptProcessor |
getScriptProcessor(String path)
Returns the script processor that matches the file extension for the given path. |
ScriptProcessor |
getScriptProcessorByExtension(String extension)
Gets the script processor registered for the given extension |
void |
registerScriptProcessor(ScriptProcessor scriptProcessor)
Registers a script processor |
void |
registerScriptProcessor(ScriptProcessor scriptProcessor,
String extension,
String name)
Registers a script processor |
void |
reset()
Resets all of the registered script processors |
void |
setDefaultScriptProcessor(String defaultScriptProcessorName)
Sets the name of the default script processor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptProcessorRegistry()
| Method Detail |
|---|
public void setDefaultScriptProcessor(String defaultScriptProcessorName)
defaultScriptProcessor - the name of the default script processorpublic void registerScriptProcessor(ScriptProcessor scriptProcessor)
scriptProcessor - the script processor to register
public void registerScriptProcessor(ScriptProcessor scriptProcessor,
String extension,
String name)
scriptProcessor - the script processor to registerextension - name - protected ScriptProcessor getDefaultScriptProcessor()
public ScriptProcessor getScriptProcessor(String path)
path - the path
public ScriptProcessor getScriptProcessor(ScriptContent scriptContent)
path - the path
public ScriptProcessor getScriptProcessorByExtension(String extension)
extension - the extension
public String findValidScriptPath(String path)
path - the path
public String[] getRegisteredExtensions()
public String getExtensionForProcessor(ScriptProcessor scriptProcessor)
scriptProcessor - the script processor
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||