Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.groovy.grails.web.pages
[Java] Class GroovyPageMetaInfo

    java.lang.Object
      org.codehaus.groovy.grails.web.pages.GroovyPageMetaInfo

All Implemented Interfaces:
  GrailsApplicationAware

    public class GroovyPageMetaInfo
    extends java.lang.Object

Encapsulates the information necessary to describe a GSP.

Authors:
  Graeme Rocher
  Lari Hotari

Since:
  0.5

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(Resource resource)`
`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

### HTML_DATA_POSTFIX

    public static final java.lang.String HTML_DATA_POSTFIX

### LASTMODIFIED_CHECK_INTERVAL

    public static final long LASTMODIFIED_CHECK_INTERVAL

### LINENUMBERS_DATA_POSTFIX

    public static final java.lang.String LINENUMBERS_DATA_POSTFIX

Constructor Detail

### GroovyPageMetaInfo

    public GroovyPageMetaInfo()

### GroovyPageMetaInfo

    @SuppressWarnings("rawtypes")
    public GroovyPageMetaInfo(java.lang.Class pageClass)

Method Detail

### applyLastModifiedFromResource

    public void applyLastModifiedFromResource(Resource resource)

### checkIfReloadableResourceHasChanged

    public Resource checkIfReloadableResourceHasChanged(java.security.PrivilegedAction resourceCallable)

### getCodecClass

    public java.lang.Class getCodecClass()

### getCodecName

    public java.lang.String getCodecName()

### getCompilationException

    public GroovyPagesException getCompilationException()

### getContentType

    public java.lang.String getContentType()

### getGrailsApplication

    public GrailsApplication getGrailsApplication()

### getGroovySource

    public java.io.InputStream getGroovySource()

### getHtmlParts

    public java.lang.String[] getHtmlParts()

### getJspTagLibraryResolver

    public TagLibraryResolver getJspTagLibraryResolver()

### getJspTags

    @SuppressWarnings("rawtypes")
    public java.util.Map getJspTags()

### getLastModified

    public long getLastModified()

### getLineNumbers

    public int[] getLineNumbers()

### getPageClass

    public java.lang.Class getPageClass()

### getPagePlugin

    public GrailsPlugin getPagePlugin()

### getPluginPath

    public java.lang.String getPluginPath()

### getTagLibraryLookup

    public TagLibraryLookup getTagLibraryLookup()

### initialize

    @SuppressWarnings("rawtypes")
    public void initialize()

### isPrecompiledMode

    public boolean isPrecompiledMode()

### setCodecName

    public void setCodecName(java.lang.String codecName)

### setCompilationException

    public void setCompilationException(GroovyPagesException e)

### setContentType

    public void setContentType(java.lang.String contentType)

### setGrailsApplication

    public void setGrailsApplication(GrailsApplication grailsApplication)

### setGroovySource

    public void setGroovySource(java.io.InputStream groovySource)

### setHtmlParts

    public void setHtmlParts(java.lang.String[] htmlParts)

### setJspTagLibraryResolver

    public void setJspTagLibraryResolver(TagLibraryResolver jspTagLibraryResolver)

### setJspTags

    @SuppressWarnings("rawtypes")
    public void setJspTags(java.util.Map jspTags)

### setLastModified

    public void setLastModified(long lastModified)

### setLineNumbers

    public void setLineNumbers(int[] lineNumbers)

### setPageClass

    public void setPageClass(java.lang.Class pageClass)

### setTagLibraryLookup

    public void setTagLibraryLookup(TagLibraryLookup tagLibraryLookup)

### shouldReload

    public 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. 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).
  Parameters:
    `resourceCallable` - call back that resolves the source gsp lazily
  Returns:
    true if the available gsp source file is newer than the loaded one.

Groovy Documentation