public class GroovyPageMetaInfo
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 |
Type | Name and description |
---|---|
GroovyPagesException |
compilationException |
boolean |
compileStaticMode |
java.lang.String |
contentType |
GrailsApplication |
grailsApplication |
java.io.InputStream |
groovySource |
java.lang.String[] |
htmlParts |
TagLibraryResolver |
jspTagLibraryResolver |
java.util.Map |
jspTags |
long |
lastModified |
int[] |
lineNumbers |
boolean |
modelFieldsMode |
java.lang.Class<?> |
pageClass |
TagLibraryLookup |
tagLibraryLookup |
Constructor and description |
---|
GroovyPageMetaInfo
() |
GroovyPageMetaInfo
(java.lang.Class<?> pageClass) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
applyLastModifiedFromResource(Resource resource) |
|
Resource |
checkIfReloadableResourceHasChanged(java.security.PrivilegedAction<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() |
|
java.util.Set<java.lang.reflect.Field> |
getModelFields() |
|
Encoder |
getOutEncoder() |
|
java.lang.Class<?> |
getPageClass() |
|
GrailsPlugin |
getPagePlugin() |
|
java.lang.String |
getPluginPath() |
|
Encoder |
getStaticEncoder() |
|
TagLibraryLookup |
getTagLibraryLookup() |
|
Encoder |
getTaglibEncoder() |
|
void |
initialize() |
|
boolean |
isCompileStaticMode() |
|
boolean |
isModelFieldsMode() |
|
boolean |
isPrecompiledMode() |
|
void |
removePageMetaClass() |
|
void |
setCompilationException(GroovyPagesException e) |
|
void |
setCompileStaticMode(boolean compileStaticMode) |
|
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 |
setModelFieldsMode(boolean modelFieldsMode) |
|
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<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