|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.avalon.JellyServiceImpl
An Avalon based service for executing Jelly scripts. The service allows executing a script based on a name as well as by a URL.
| Constructor Summary | |
JellyServiceImpl()
Constructor for JellyService. |
|
| Method Summary | |
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
Configures the Jelly Service with named scripts. |
protected org.apache.commons.jelly.JellyContext |
createJellyContext()
Factory method to create a new JellyContext instance. |
protected org.apache.commons.jelly.XMLOutput |
createXMLOutput()
Factory method to create a new XMLOutput to give to scripts as they run. |
java.util.Map |
runNamedScript(java.lang.String name,
java.util.Map params)
Executes a named script with the supplied Map of parameters. |
java.util.Map |
runNamedScript(java.lang.String name,
java.util.Map params,
java.io.OutputStream out)
Executes a named script with the supplied Map of parameters and send the output of the script to the supplied output stream. |
java.util.Map |
runNamedScript(java.lang.String name,
java.util.Map params,
org.apache.commons.jelly.XMLOutput output)
Executes a named script with the supplied Map of parameters. |
java.util.Map |
runScript(java.lang.String url,
java.util.Map params)
Runs a script from the supplied url |
java.util.Map |
runScript(java.lang.String url,
java.util.Map params,
java.io.OutputStream out)
Runs a script from the supplied url and sends the output of the script to the supplied OutputStream. |
java.util.Map |
runScript(java.lang.String url,
java.util.Map params,
org.apache.commons.jelly.XMLOutput output)
Runs a script from the supplied url |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JellyServiceImpl()
| Method Detail |
public java.util.Map runNamedScript(java.lang.String name,
java.util.Map params)
throws java.lang.Exception
JellyService
runNamedScript in interface JellyServiceparams - Parameters to be supplied to the script
java.lang.Exception - if the script raises some kind of exception while processingorg.apache.commons.jelly.avalon.JellyService.runNamedScript(String, Map)
public java.util.Map runNamedScript(java.lang.String name,
java.util.Map params,
org.apache.commons.jelly.XMLOutput output)
throws java.lang.Exception
JellyService
runNamedScript in interface JellyServicename - is the name of the script to runparams - Parameters to be supplied to the scriptoutput - is the XMLOutput for any output to be sent
java.lang.Exception - if the script raises some kind of exception while processingorg.apache.commons.jelly.avalon.JellyService.runNamedScript(String, Map, XMLOutput)
public java.util.Map runNamedScript(java.lang.String name,
java.util.Map params,
java.io.OutputStream out)
throws java.lang.Exception
JellyService
runNamedScript in interface JellyServicename - is the name of the script to runparams - Parameters to be supplied to the scriptout - is the outputStream for output to be sent
java.lang.Exception - if the script raises some kind of exception while processingorg.apache.commons.jelly.avalon.JellyService.runNamedScript(String, Map, OutputStream)
public java.util.Map runScript(java.lang.String url,
java.util.Map params,
org.apache.commons.jelly.XMLOutput output)
throws java.lang.Exception
JellyService
runScript in interface JellyServiceurl - The URL of the scriptparams - Parameters to be supplied to the scriptoutput - is the XMLOutput where output of the script will go
java.lang.Exceptionorg.apache.commons.jelly.avalon.JellyService.runScript(String, Map, XMLOutput)
public java.util.Map runScript(java.lang.String url,
java.util.Map params,
java.io.OutputStream out)
throws java.lang.Exception
JellyService
runScript in interface JellyServiceurl - The URL of the scriptparams - Parameters to be supplied to the scriptout - The OutputStream to send the output of the script to
java.lang.Exception - if the script raises some kind of exception while processingorg.apache.commons.jelly.avalon.JellyService.runScript(String, Map, OutputStream)
public java.util.Map runScript(java.lang.String url,
java.util.Map params)
throws java.lang.Exception
JellyService
runScript in interface JellyServiceurl - The URL of the scriptparams - Parameters to be supplied to the script
java.lang.Exception - if the script raises some kind of exception while processingorg.apache.commons.jelly.avalon.JellyService.runScript(String, Map)
public void configure(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
Configures the Jelly Service with named scripts.
The configuration looks like:
<jelly>
<script>
<name>script name</name>
<url validate="false">url to script file</url>
</script>
</jelly>
Where each <script> element defines a seperate script. The validate attribute on the url tag is optional and defaults to false.
configure in interface org.apache.avalon.framework.configuration.Configurableconfig - The configuration
org.apache.avalon.framework.configuration.ConfigurationExceptionprotected org.apache.commons.jelly.JellyContext createJellyContext()
protected org.apache.commons.jelly.XMLOutput createXMLOutput()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||