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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic 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
ScriptInvokerServletResponse.getOutputStream().invokeScript in interface ScriptInvokerIOExceptionorg.apache.commons.jelly.JellyTagExceptionpublic 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
ScriptInvokerinvokeScript in interface ScriptInvokerIOExceptionorg.apache.commons.jelly.JellyTagExceptionprotected org.apache.commons.jelly.XMLOutput createXMLOutput(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, Object it) throws IOException
IOExceptionprotected OutputStream createOutputStream(StaplerRequest req, StaplerResponse rsp, org.apache.commons.jelly.Script script, Object it) throws IOException
IOExceptionprotected 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.XMLOutputFactoryCopyright © 2019. All rights reserved.