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:
http://www.slideshare.net/guest22d4179/latency-trumps-all
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
ScriptInvoker
ServletResponse.getOutputStream()
.invokeScript
in interface ScriptInvoker
java.io.IOException
org.apache.commons.jelly.JellyTagException
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
ScriptInvoker
invokeScript
in interface ScriptInvoker
java.io.IOException
org.apache.commons.jelly.JellyTagException
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
java.io.IOException
protected java.io.OutputStream createOutputStream(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, java.lang.Object it) throws java.io.IOException
java.io.IOException
protected 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.XMLOutputFactory
Copyright © 2013. All Rights Reserved.