|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.pages.GroovyPageMetaInfo
public class GroovyPageMetaInfo extends java.lang.Object
Encapsulates the information necessary to describe a GSP.
Field Summary | |
---|---|
static java.lang.String |
HTML_DATA_POSTFIX
|
static long |
LASTMODIFIED_CHECK_INTERVAL
|
static java.lang.String |
LINENUMBERS_DATA_POSTFIX
|
Constructor Summary | |
GroovyPageMetaInfo()
|
|
GroovyPageMetaInfo(java.lang.Class pageClass)
|
Method Summary | |
---|---|
void
|
applyLastModifiedFromResource(org.springframework.core.io.Resource resource)
|
org.springframework.core.io.Resource
|
checkIfReloadableResourceHasChanged(java.security.PrivilegedAction resourceCallable)
|
java.lang.Class
|
getCodecClass()
|
java.lang.String
|
getCodecName()
|
GroovyPagesException
|
getCompilationException()
|
java.lang.String
|
getContentType()
|
GrailsApplication
|
getGrailsApplication()
|
java.io.InputStream
|
getGroovySource()
|
java.lang.String[]
|
getHtmlParts()
|
TagLibraryResolver
|
getJspTagLibraryResolver()
|
java.util.Map
|
getJspTags()
|
long
|
getLastModified()
|
int[]
|
getLineNumbers()
|
java.lang.Class
|
getPageClass()
|
GrailsPlugin
|
getPagePlugin()
|
java.lang.String
|
getPluginPath()
|
TagLibraryLookup
|
getTagLibraryLookup()
|
void
|
initialize()
|
boolean
|
isPrecompiledMode()
|
void
|
setCodecName(java.lang.String codecName)
|
void
|
setCompilationException(GroovyPagesException e)
|
void
|
setContentType(java.lang.String contentType)
|
void
|
setGrailsApplication(GrailsApplication grailsApplication)
|
void
|
setGroovySource(java.io.InputStream groovySource)
|
void
|
setHtmlParts(java.lang.String[] htmlParts)
|
void
|
setJspTagLibraryResolver(TagLibraryResolver jspTagLibraryResolver)
|
void
|
setJspTags(java.util.Map jspTags)
|
void
|
setLastModified(long lastModified)
|
void
|
setLineNumbers(int[] lineNumbers)
|
void
|
setPageClass(java.lang.Class pageClass)
|
void
|
setTagLibraryLookup(TagLibraryLookup tagLibraryLookup)
|
boolean
|
shouldReload(java.security.PrivilegedAction resourceCallable)
Checks if this GSP has expired and should be reloaded (there is a newer source gsp available) PrivilegedAction is used so that locating the Resource is lazily evaluated. |
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() |
Field Detail |
---|
public static final java.lang.String HTML_DATA_POSTFIX
public static final long LASTMODIFIED_CHECK_INTERVAL
public static final java.lang.String LINENUMBERS_DATA_POSTFIX
Constructor Detail |
---|
public GroovyPageMetaInfo()
@SuppressWarnings("rawtypes") public GroovyPageMetaInfo(java.lang.Class pageClass)
Method Detail |
---|
public void applyLastModifiedFromResource(org.springframework.core.io.Resource resource)
public org.springframework.core.io.Resource checkIfReloadableResourceHasChanged(java.security.PrivilegedAction resourceCallable)
public java.lang.Class getCodecClass()
public java.lang.String getCodecName()
public GroovyPagesException getCompilationException()
public java.lang.String getContentType()
public GrailsApplication getGrailsApplication()
public java.io.InputStream getGroovySource()
public java.lang.String[] getHtmlParts()
public TagLibraryResolver getJspTagLibraryResolver()
@SuppressWarnings("rawtypes") public java.util.Map getJspTags()
public long getLastModified()
public int[] getLineNumbers()
public java.lang.Class getPageClass()
public GrailsPlugin getPagePlugin()
public java.lang.String getPluginPath()
public TagLibraryLookup getTagLibraryLookup()
@SuppressWarnings("rawtypes") public void initialize()
public boolean isPrecompiledMode()
public void setCodecName(java.lang.String codecName)
public void setCompilationException(GroovyPagesException e)
public void setContentType(java.lang.String contentType)
public void setGrailsApplication(GrailsApplication grailsApplication)
public void setGroovySource(java.io.InputStream groovySource)
public void setHtmlParts(java.lang.String[] htmlParts)
public void setJspTagLibraryResolver(TagLibraryResolver jspTagLibraryResolver)
@SuppressWarnings("rawtypes") public void setJspTags(java.util.Map jspTags)
public void setLastModified(long lastModified)
public void setLineNumbers(int[] lineNumbers)
public void setPageClass(java.lang.Class pageClass)
public void setTagLibraryLookup(TagLibraryLookup tagLibraryLookup)
public boolean shouldReload(java.security.PrivilegedAction resourceCallable)
resourceCallable
- call back that resolves the source gsp lazily
Groovy Documentation