|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object grails.gsp.PageRenderer
class PageRenderer extends java.lang.Object
Simplified API for rendering GSP pages from services, jobs and other non-request classes.
Nested Class Summary | |
---|---|
static class |
PageRenderer.PageRenderRequestCreator
|
static class |
PageRenderer.PageRenderResponseCreator
|
Property Summary | |
---|---|
org.springframework.context.ApplicationContext |
applicationContext
|
GrailsConventionGroovyPageLocator |
groovyPageLocator
|
javax.servlet.ServletContext |
servletContext
|
Constructor Summary | |
PageRenderer(GroovyPagesTemplateEngine templateEngine)
|
Method Summary | |
---|---|
protected GroovyPageScriptSource
|
findResource(java.lang.String basePath)
|
java.lang.String
|
render(java.util.Map args)
Renders a page and returns the contents |
void
|
renderTo(java.util.Map args, java.io.Writer writer)
Renders a page and returns the contents |
void
|
renderTo(java.util.Map args, java.io.OutputStream stream)
Renders a page and returns the contents |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Property Detail |
---|
org.springframework.context.ApplicationContext applicationContext
GrailsConventionGroovyPageLocator groovyPageLocator
javax.servlet.ServletContext servletContext
Constructor Detail |
---|
PageRenderer(GroovyPagesTemplateEngine templateEngine)
Method Detail |
---|
protected GroovyPageScriptSource findResource(java.lang.String basePath)
java.lang.String render(java.util.Map args)
args
- The named arguments
void renderTo(java.util.Map args, java.io.Writer writer)
args
- The named argumentswriter
- The target writer
void renderTo(java.util.Map args, java.io.OutputStream stream)
args
- The named argumentsstream
- The target stream
Groovy Documentation