org.codehaus.groovy.grails.web.pages.discovery
Class GroovyPageResourceScriptSource

java.lang.Object
  extended by org.springframework.scripting.support.ResourceScriptSource
      extended by org.codehaus.groovy.grails.web.pages.discovery.GroovyPageResourceScriptSource
All Implemented Interfaces:
GroovyPageScriptSource, org.springframework.scripting.ScriptSource

public class GroovyPageResourceScriptSource
extends org.springframework.scripting.support.ResourceScriptSource
implements GroovyPageScriptSource


Field Summary
 
Fields inherited from class org.springframework.scripting.support.ResourceScriptSource
logger
 
Constructor Summary
GroovyPageResourceScriptSource(java.lang.String uri, org.springframework.core.io.Resource resource)
          Create a new ResourceScriptSource for the given resource.
 
Method Summary
 java.lang.String getURI()
           
 boolean isPublic()
          Whether the GSP is publicly accessible directly, or only usable using internal rendering
static boolean isPublicPath(java.lang.String path)
           
 
Methods inherited from class org.springframework.scripting.support.ResourceScriptSource
getResource, getScriptAsString, isModified, retrieveLastModifiedTime, setEncoding, suggestedClassName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.scripting.ScriptSource
getScriptAsString, isModified, suggestedClassName
 

Constructor Detail

GroovyPageResourceScriptSource

public GroovyPageResourceScriptSource(java.lang.String uri,
                                      org.springframework.core.io.Resource resource)
Create a new ResourceScriptSource for the given resource.

Parameters:
uri - The URI of the resource
resource - the Resource to load the script from
Method Detail

isPublicPath

public static boolean isPublicPath(java.lang.String path)

getURI

public java.lang.String getURI()
Specified by:
getURI in interface GroovyPageScriptSource
Returns:
The URI of the Groovy page

isPublic

public boolean isPublic()
Whether the GSP is publicly accessible directly, or only usable using internal rendering

Specified by:
isPublic in interface GroovyPageScriptSource
Returns:
True if it can be rendered publicly