org.kohsuke.stapler.jelly.groovy.GroovyServerPageScript Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stapler-groovy Show documentation
Show all versions of stapler-groovy Show documentation
Groovy binding for Stapler
The newest version!
package org.kohsuke.stapler.jelly.groovy;
import groovy.text.SimpleTemplateEngine;
import java.io.Writer;
/**
* Base class for compiled GSP files.
*
* @author Kohsuke Kawaguchi
*/
public abstract class GroovyServerPageScript extends StaplerClosureScript {
private Writer out;
protected GroovyServerPageScript() {
}
/**
* {@link SimpleTemplateEngine} expects 'out' variable
*/
public Writer getOut() {
if (out==null) {
out = ((JellyBuilder)getDelegate()).getOutput().asWriter();
}
return out;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy