public class GroovyPageMetaInfo extends java.lang.Object
Encapsulates the information necessary to describe a GSP.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DEFAULT_PLUGIN_PATH |
|
static java.lang.String |
HTML_DATA_POSTFIX |
|
static long |
LASTMODIFIED_CHECK_INTERVAL |
|
static java.lang.String |
LINENUMBERS_DATA_POSTFIX |
Constructor and description |
---|
GroovyPageMetaInfo
() |
GroovyPageMetaInfo
(java.lang.Class<?> pageClass) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
applyLastModifiedFromResource(org.springframework.core.io.Resource resource) |
|
org.springframework.core.io.Resource |
checkIfReloadableResourceHasChanged(java.security.PrivilegedAction<org.springframework.core.io.Resource> resourceCallable) |
|
GroovyPagesException |
getCompilationException() |
|
java.lang.String |
getContentType() |
|
Encoder |
getExpressionEncoder() |
|
GrailsApplication |
getGrailsApplication() |
|
java.io.InputStream |
getGroovySource() |
|
java.lang.String[] |
getHtmlParts() |
|
TagLibraryResolver |
getJspTagLibraryResolver() |
|
java.util.Map |
getJspTags() |
|
long |
getLastModified() |
|
int[] |
getLineNumbers() |
|
Encoder |
getOutEncoder() |
|
java.lang.Class<?> |
getPageClass() |
|
GrailsPlugin |
getPagePlugin() |
|
java.lang.String |
getPluginPath() |
|
Encoder |
getStaticEncoder() |
|
TagLibraryLookup |
getTagLibraryLookup() |
|
Encoder |
getTaglibEncoder() |
|
void |
initialize() |
|
boolean |
isPrecompiledMode() |
|
void |
removePageMetaClass() |
|
void |
setCompilationException(GroovyPagesException e) |
|
void |
setContentType(java.lang.String contentType) |
|
void |
setExpressionCodecName(java.lang.String expressionCodecName) |
|
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 |
setOutCodecName(java.lang.String pageCodecName) |
|
void |
setPageClass(java.lang.Class<?> pageClass) |
|
void |
setStaticCodecName(java.lang.String staticCodecName) |
|
void |
setTagLibraryLookup(TagLibraryLookup tagLibraryLookup) |
|
void |
setTaglibCodecName(java.lang.String taglibCodecName) |
|
boolean |
shouldReload(java.security.PrivilegedAction<org.springframework.core.io.Resource> 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. |
|
void |
writeToFinished(java.io.Writer out) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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() |
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. lastModified checking is done only when enough time has expired since the last check. This setting is controlled by the grails.gsp.reload.interval System property, by default it's value is 5000 (ms).
resourceCallable
- call back that resolves the source gsp lazily