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 |
Constructor and description |
---|
GroovyPageMetaInfo
() |
GroovyPageMetaInfo
(java.lang.Class<?> pageClass) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
applyLastModifiedFromResource(Resource resource) |
|
public Resource |
call() |
|
public Resource |
checkIfReloadableResourceHasChanged(java.security.PrivilegedAction<Resource> resourceCallable) |
|
public GroovyPagesException |
getCompilationException() |
|
public java.lang.String |
getContentType() |
|
public Encoder |
getExpressionEncoder() |
|
public GrailsApplication |
getGrailsApplication() |
|
public java.io.InputStream |
getGroovySource() |
|
public java.lang.String[] |
getHtmlParts() |
|
public TagLibraryResolver |
getJspTagLibraryResolver() |
|
public java.util.Map |
getJspTags() |
|
public long |
getLastModified() |
|
public int[] |
getLineNumbers() |
|
public java.util.Set<java.lang.reflect.Field> |
getModelFields() |
|
public Encoder |
getOutEncoder() |
|
public java.lang.Class<?> |
getPageClass() |
|
public GrailsPlugin |
getPagePlugin() |
|
public java.lang.String |
getPluginPath() |
|
public Encoder |
getStaticEncoder() |
|
public TagLibraryLookup |
getTagLibraryLookup() |
|
public Encoder |
getTaglibEncoder() |
|
public void |
initialize() |
|
public boolean |
isCompileStaticMode() |
|
public boolean |
isModelFieldsMode() |
|
public boolean |
isPrecompiledMode() |
|
public void |
removePageMetaClass() |
|
public void |
setCompilationException(GroovyPagesException e) |
|
public void |
setCompileStaticMode(boolean compileStaticMode) |
|
public void |
setContentType(java.lang.String contentType) |
|
public void |
setExpressionCodecName(java.lang.String expressionCodecName) |
|
public void |
setGrailsApplication(GrailsApplication grailsApplication) |
|
public void |
setGroovySource(java.io.InputStream groovySource) |
|
public void |
setHtmlParts(java.lang.String[] htmlParts) |
|
public void |
setJspTagLibraryResolver(TagLibraryResolver jspTagLibraryResolver) |
|
public void |
setJspTags(java.util.Map jspTags) |
|
public void |
setLastModified(long lastModified) |
|
public void |
setLineNumbers(int[] lineNumbers) |
|
public void |
setModelFieldsMode(boolean modelFieldsMode) |
|
public void |
setOutCodecName(java.lang.String pageCodecName) |
|
public void |
setPageClass(java.lang.Class<?> pageClass) |
|
public void |
setStaticCodecName(java.lang.String staticCodecName) |
|
public void |
setTagLibraryLookup(TagLibraryLookup tagLibraryLookup) |
|
public void |
setTaglibCodecName(java.lang.String taglibCodecName) |
|
public 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. |
|
public void |
writeToFinished(java.io.Writer out) |
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() |
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