public class GroovyPageWritable
Writes itself to the specified writer, typically the response writer.
Constructor and description |
---|
GroovyPageWritable
(GroovyPageMetaInfo metaInfo, OutputContextLookup outputContextLookup, boolean allowSettingContentType) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
doCleanUp(OutputContext outputContext, java.io.Writer out) |
|
protected java.io.Writer |
doWriteTo(OutputContext outputContext, java.io.Writer out) |
|
public boolean |
isShowSource() |
|
public void |
setBinding(java.util.Map binding) This sets any additional variables that need to be placed in the Binding of the GSP page. |
|
public void |
setShowSource(boolean showSource) |
|
protected void |
writeGroovySourceToResponse(GroovyPageMetaInfo info, java.io.Writer out) Writes the Groovy source code attached to the given info object to the response, prefixing each line with its line number. |
|
protected void |
writeInputStreamToResponse(java.io.InputStream in, java.io.Writer out) Copy all of input to output. |
|
public java.io.Writer |
writeTo(java.io.Writer out) Writes the template to the specified Writer |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
This sets any additional variables that need to be placed in the Binding of the GSP page.
binding
- The additional variablesWrites the Groovy source code attached to the given info object to the response, prefixing each line with its line number. The line numbers make it easier to match line numbers in exceptions to the generated source.
info
- The meta info for the GSP page that we want to write
the generated source for.out
- The writer to send the source to.Copy all of input to output.
in
- The input stream to writeInputStreamToResponse fromout
- The output to write toWrites the template to the specified Writer
out
- The Writer to write to, normally the HttpServletResponse