org.apache.portals.bridges.groovy
Class GroovyPortlet
java.lang.Object
org.apache.portals.bridges.groovy.GroovyPortlet
- All Implemented Interfaces:
- javax.portlet.Portlet
- Direct Known Subclasses:
- GroovyPortletHeaderPhaseSupport
public class GroovyPortlet
- extends Object
- implements javax.portlet.Portlet
GroovyPortlet parses and invokes a groovy-scripted portlet. A groovy-scripted
portlet just need to be implemented like any other Java-based portlet. So, a
groovy-scripted portlet can support full features of JSR-168 portlet.
- Author:
- Woonsan Ko
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCRIPT_SOURCE_INIT_PARAM
public static final String SCRIPT_SOURCE_INIT_PARAM
- See Also:
- Constant Field Values
SCRIPT_SOURCE_URL_ENCODING_INIT_PARAM
public static final String SCRIPT_SOURCE_URL_ENCODING_INIT_PARAM
- See Also:
- Constant Field Values
AUTO_REFRESH_INIT_PARAM
public static final String AUTO_REFRESH_INIT_PARAM
- See Also:
- Constant Field Values
portletConfig
protected javax.portlet.PortletConfig portletConfig
scriptSourceUri
protected String scriptSourceUri
scriptSourceUriEncoding
protected String scriptSourceUriEncoding
autoRefresh
protected boolean autoRefresh
parsedFileLastModified
protected long parsedFileLastModified
groovyCodeSource
protected groovy.lang.GroovyCodeSource groovyCodeSource
scriptPortletInstance
protected javax.portlet.Portlet scriptPortletInstance
groovyClassLoader
protected groovy.lang.GroovyClassLoader groovyClassLoader
GroovyPortlet
public GroovyPortlet()
init
public void init(javax.portlet.PortletConfig config)
throws javax.portlet.PortletException
- Specified by:
init
in interface javax.portlet.Portlet
- Throws:
javax.portlet.PortletException
processAction
public void processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException,
IOException
- Specified by:
processAction
in interface javax.portlet.Portlet
- Throws:
javax.portlet.PortletException
IOException
render
public void render(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
- Specified by:
render
in interface javax.portlet.Portlet
- Throws:
javax.portlet.PortletException
IOException
destroy
public void destroy()
- Specified by:
destroy
in interface javax.portlet.Portlet
refreshPortletInstance
protected void refreshPortletInstance()
throws javax.portlet.PortletException
- Throws:
javax.portlet.PortletException
isScriptFileModified
protected boolean isScriptFileModified()
createScriptPortletInstance
protected void createScriptPortletInstance()
throws org.codehaus.groovy.control.CompilationFailedException,
InstantiationException,
IOException,
IllegalAccessException,
javax.portlet.PortletException
- Throws:
org.codehaus.groovy.control.CompilationFailedException
InstantiationException
IOException
IllegalAccessException
javax.portlet.PortletException
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.