org.kohsuke.stapler.jelly
Class DefaultScriptInvoker
java.lang.Object
org.kohsuke.stapler.jelly.DefaultScriptInvoker
- All Implemented Interfaces:
- org.apache.commons.jelly.XMLOutputFactory, ScriptInvoker
public class DefaultScriptInvoker
- extends java.lang.Object
- implements ScriptInvoker, org.apache.commons.jelly.XMLOutputFactory
Standard implementation of ScriptInvoker
.
- Author:
- Kohsuke Kawaguchi
Method Summary |
protected org.apache.commons.jelly.JellyContext |
createContext(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it)
|
protected java.io.OutputStream |
createOutputStream(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it)
|
protected org.apache.commons.jelly.XMLOutput |
createXMLOutput(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it)
|
org.apache.commons.jelly.XMLOutput |
createXMLOutput(java.io.Writer writer,
boolean escapeText)
|
protected void |
exportVariables(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it,
org.apache.commons.jelly.JellyContext context)
|
void |
invokeScript(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it)
Invokes the script and generates output to ServletResponse.getOutputStream() . |
void |
invokeScript(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it,
org.apache.commons.jelly.XMLOutput out)
Invokes the script and generates output to the specified output |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultScriptInvoker
public DefaultScriptInvoker()
invokeScript
public void invokeScript(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it)
throws java.io.IOException,
org.apache.commons.jelly.JellyTagException
- Description copied from interface:
ScriptInvoker
- Invokes the script and generates output to
ServletResponse.getOutputStream()
.
- Specified by:
invokeScript
in interface ScriptInvoker
- Throws:
java.io.IOException
org.apache.commons.jelly.JellyTagException
invokeScript
public void invokeScript(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it,
org.apache.commons.jelly.XMLOutput out)
throws java.io.IOException,
org.apache.commons.jelly.JellyTagException
- Description copied from interface:
ScriptInvoker
- Invokes the script and generates output to the specified output
- Specified by:
invokeScript
in interface ScriptInvoker
- Throws:
java.io.IOException
org.apache.commons.jelly.JellyTagException
createXMLOutput
protected org.apache.commons.jelly.XMLOutput createXMLOutput(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it)
throws java.io.IOException
- Throws:
java.io.IOException
createOutputStream
protected java.io.OutputStream createOutputStream(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it)
throws java.io.IOException
- Throws:
java.io.IOException
exportVariables
protected void exportVariables(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it,
org.apache.commons.jelly.JellyContext context)
createContext
protected org.apache.commons.jelly.JellyContext createContext(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
java.lang.Object it)
createXMLOutput
public org.apache.commons.jelly.XMLOutput createXMLOutput(java.io.Writer writer,
boolean escapeText)
- Specified by:
createXMLOutput
in interface org.apache.commons.jelly.XMLOutputFactory
Copyright © 2012. All Rights Reserved.