public class DefaultScriptInvoker extends 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,
Object it) |
protected OutputStream |
createOutputStream(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
Object it) |
protected org.apache.commons.jelly.XMLOutput |
createXMLOutput(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
Object it) |
org.apache.commons.jelly.XMLOutput |
createXMLOutput(Writer writer,
boolean escapeText) |
protected void |
exportVariables(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
Object it,
org.apache.commons.jelly.JellyContext context) |
void |
invokeScript(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
Object it)
Invokes the script and generates output to
ServletResponse.getOutputStream() . |
void |
invokeScript(StaplerRequest req,
StaplerResponse rsp,
org.apache.commons.jelly.Script script,
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, Object it) throws IOException, org.apache.commons.jelly.JellyTagException
ScriptInvoker
ServletResponse.getOutputStream()
.invokeScript
in interface ScriptInvoker
IOException
org.apache.commons.jelly.JellyTagException
public void invokeScript(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, Object it, org.apache.commons.jelly.XMLOutput out) throws IOException, org.apache.commons.jelly.JellyTagException
ScriptInvoker
invokeScript
in interface ScriptInvoker
IOException
org.apache.commons.jelly.JellyTagException
protected org.apache.commons.jelly.XMLOutput createXMLOutput(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, Object it) throws IOException
IOException
protected OutputStream createOutputStream(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, Object it) throws IOException
IOException
protected void exportVariables(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, 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, Object it)
public org.apache.commons.jelly.XMLOutput createXMLOutput(Writer writer, boolean escapeText)
createXMLOutput
in interface org.apache.commons.jelly.XMLOutputFactory
Copyright © 2015. All rights reserved.