public class DefaultScriptInvoker extends java.lang.Object implements ScriptInvoker, org.apache.commons.jelly.XMLOutputFactory
ScriptInvoker.| Modifier and Type | Field and Description |
|---|---|
static boolean |
COMPRESS_BY_DEFAULT
Whether gzip compression of the dynamic content is enabled by default or not.
|
| Constructor and Description |
|---|
DefaultScriptInvoker() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static boolean COMPRESS_BY_DEFAULT
For non-trivial web applications, where the performance matters, it is normally a good trade-off to spend a bit of CPU cycles to compress data. This is because:
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
ScriptInvokerServletResponse.getOutputStream().invokeScript in interface ScriptInvokerjava.io.IOExceptionorg.apache.commons.jelly.JellyTagExceptionpublic 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
ScriptInvokerinvokeScript in interface ScriptInvokerjava.io.IOExceptionorg.apache.commons.jelly.JellyTagExceptionprotected org.apache.commons.jelly.XMLOutput createXMLOutput(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, java.lang.Object it) throws java.io.IOException
java.io.IOExceptionprotected java.io.OutputStream createOutputStream(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, java.lang.Object it) throws java.io.IOException
java.io.IOExceptionprotected void exportVariables(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, java.lang.Object it, org.apache.commons.jelly.JellyContext context)
protected org.apache.commons.jelly.JellyContext createContext(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, java.lang.Object it)
public org.apache.commons.jelly.XMLOutput createXMLOutput(java.io.Writer writer,
boolean escapeText)
createXMLOutput in interface org.apache.commons.jelly.XMLOutputFactoryCopyright © 2015. All Rights Reserved.