|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Script
org.codehaus.groovy.grails.web.pages.GroovyPage
public abstract class GroovyPage
NOTE: Based on work done by on the GSP standalone project (https://gsp.dev.java.net/) Base class for a GroovyPage (at the moment there is nothing in here but could be useful for providing utility methods etc.
Field Summary | |
---|---|
static String |
APPLICATION_CONTEXT
|
static String |
ATTRIBUTES
|
static String |
DEFAULT_NAMESPACE
|
static String |
EXTENSION
|
static String |
FLASH
|
static String |
OUT
|
static String |
PAGE_SCOPE
|
static String |
PARAMS
|
static String |
PLUGIN_CONTEXT_PATH
|
static String |
REQUEST
|
static Collection |
RESERVED_NAMES
|
static String |
RESPONSE
|
static String |
SERVLET_CONTEXT
|
static String |
SESSION
|
static String |
WEB_REQUEST
|
Constructor Summary | |
---|---|
GroovyPage()
|
Method Summary | |
---|---|
static String |
captureTagOutput(groovy.lang.GroovyObject tagLib,
String methodName,
Map attrs,
Object body,
GrailsWebRequest webRequest,
BeanWrapper bean)
|
static String |
fromHtml(String text)
Convert from HTML to Unicode text. |
Object |
getProperty(String property)
|
Object |
invokeMethod(String methodName,
Object args)
Allows invoking of taglibs as method calls with simple bodies. |
void |
invokeTag(String tagName,
Map attrs,
groovy.lang.Closure body)
Attempts to invokes a dynamic tag |
void |
invokeTag(String tagName,
String tagNamespace,
Map attrs,
groovy.lang.Closure body)
Attempts to invokes a dynamic tag |
static boolean |
isReservedName(String name)
Return whether the given name cannot be used within the binding of a GSP |
Methods inherited from class groovy.lang.Script |
---|
evaluate, evaluate, getBinding, print, println, println, run, run, setBinding, setProperty |
Methods inherited from class groovy.lang.GroovyObjectSupport |
---|
getMetaClass, setMetaClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REQUEST
public static final String SERVLET_CONTEXT
public static final String RESPONSE
public static final String OUT
public static final String ATTRIBUTES
public static final String APPLICATION_CONTEXT
public static final String SESSION
public static final String PARAMS
public static final String FLASH
public static final String PLUGIN_CONTEXT_PATH
public static final String EXTENSION
public static final String WEB_REQUEST
public static final String DEFAULT_NAMESPACE
public static final String PAGE_SCOPE
public static final Collection RESERVED_NAMES
Constructor Detail |
---|
public GroovyPage()
Method Detail |
---|
public static String fromHtml(String text)
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class groovy.lang.Script
public void invokeTag(String tagName, Map attrs, groovy.lang.Closure body)
tagName
- The name of the tagattrs
- The tags attributesbody
- The body of the tag as a closurepublic void invokeTag(String tagName, String tagNamespace, Map attrs, groovy.lang.Closure body)
tagName
- The name of the tagtagNamespace
- The taglib's namespaceattrs
- The tags attributesbody
- The body of the tag as a closurepublic Object invokeMethod(String methodName, Object args)
invokeMethod
in interface groovy.lang.GroovyObject
invokeMethod
in class groovy.lang.Script
methodName
- The methodName of the tag to call or the methodName of a method on GroovPageargs
- The Arguments
public static String captureTagOutput(groovy.lang.GroovyObject tagLib, String methodName, Map attrs, Object body, GrailsWebRequest webRequest, BeanWrapper bean)
public static boolean isReservedName(String name)
name
- True if it can't
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |