Liferay 6.0.5

com.liferay.util.bridges.scripting
Class ScriptingPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by com.liferay.util.bridges.scripting.ScriptingPortlet
All Implemented Interfaces:
EventPortlet, Portlet, PortletConfig, ResourceServingPortlet
Direct Known Subclasses:
GroovyPortlet, JavaScriptPortlet, PythonPortlet, RubyPortlet

public class ScriptingPortlet
extends GenericPortlet


Field Summary
protected  String actionFile
           
protected  String editFile
           
protected  String[] globalFiles
           
protected  String globalScript
           
protected  String helpFile
           
protected  String language
           
protected  String resourceFile
           
protected  String viewFile
           
 
Constructor Summary
ScriptingPortlet()
           
 
Method Summary
protected  void declareBeans(InputStream is, PortletRequest portletRequest, PortletResponse portletResponse)
           
protected  void declareBeans(String script, PortletRequest portletRequest, PortletResponse portletResponse)
           
 void doDispatch(RenderRequest renderRequest, RenderResponse renderResponse)
           
 void doEdit(RenderRequest renderRequest, RenderResponse renderResponse)
           
 void doHelp(RenderRequest renderRequest, RenderResponse renderResponse)
           
protected  void doRender(RenderRequest renderRequest, RenderResponse renderResponse)
           
 void doView(RenderRequest renderRequest, RenderResponse renderResponse)
           
protected  String getFileName(RenderRequest renderRequest)
           
protected  String getGlobalScript()
           
protected  void include(String path, PortletRequest portletRequest, PortletResponse portletResponse)
           
 void init()
           
 void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
           
 void render(RenderRequest renderRequest, RenderResponse renderResponse)
           
 void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
           
protected  void writeErrorMessage(RenderRequest renderRequest, RenderResponse renderResponse, String errorMessage)
           
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doHeaders, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionFile

protected String actionFile

editFile

protected String editFile

helpFile

protected String helpFile

globalFiles

protected String[] globalFiles

globalScript

protected String globalScript

resourceFile

protected String resourceFile

language

protected String language

viewFile

protected String viewFile
Constructor Detail

ScriptingPortlet

public ScriptingPortlet()
Method Detail

init

public void init()
Overrides:
init in class GenericPortlet

doDispatch

public void doDispatch(RenderRequest renderRequest,
                       RenderResponse renderResponse)
                throws IOException,
                       PortletException
Overrides:
doDispatch in class GenericPortlet
Throws:
IOException
PortletException

doEdit

public void doEdit(RenderRequest renderRequest,
                   RenderResponse renderResponse)
            throws IOException,
                   PortletException
Overrides:
doEdit in class GenericPortlet
Throws:
IOException
PortletException

doHelp

public void doHelp(RenderRequest renderRequest,
                   RenderResponse renderResponse)
            throws IOException
Overrides:
doHelp in class GenericPortlet
Throws:
IOException

doView

public void doView(RenderRequest renderRequest,
                   RenderResponse renderResponse)
            throws IOException
Overrides:
doView in class GenericPortlet
Throws:
IOException

processAction

public void processAction(ActionRequest actionRequest,
                          ActionResponse actionResponse)
                   throws IOException
Specified by:
processAction in interface Portlet
Overrides:
processAction in class GenericPortlet
Throws:
IOException

render

public void render(RenderRequest renderRequest,
                   RenderResponse renderResponse)
            throws IOException,
                   PortletException
Specified by:
render in interface Portlet
Overrides:
render in class GenericPortlet
Throws:
IOException
PortletException

serveResource

public void serveResource(ResourceRequest resourceRequest,
                          ResourceResponse resourceResponse)
                   throws IOException
Specified by:
serveResource in interface ResourceServingPortlet
Overrides:
serveResource in class GenericPortlet
Throws:
IOException

declareBeans

protected void declareBeans(InputStream is,
                            PortletRequest portletRequest,
                            PortletResponse portletResponse)
                     throws IOException,
                            ScriptingException
Throws:
IOException
ScriptingException

declareBeans

protected void declareBeans(String script,
                            PortletRequest portletRequest,
                            PortletResponse portletResponse)
                     throws IOException,
                            ScriptingException
Throws:
IOException
ScriptingException

doRender

protected void doRender(RenderRequest renderRequest,
                        RenderResponse renderResponse)
                 throws Exception
Throws:
Exception

getFileName

protected String getFileName(RenderRequest renderRequest)

getGlobalScript

protected String getGlobalScript()
                          throws IOException
Throws:
IOException

include

protected void include(String path,
                       PortletRequest portletRequest,
                       PortletResponse portletResponse)
                throws IOException
Throws:
IOException

writeErrorMessage

protected void writeErrorMessage(RenderRequest renderRequest,
                                 RenderResponse renderResponse,
                                 String errorMessage)
                          throws Exception
Throws:
Exception

Liferay 6.0.5