Liferay 6.2-ce-ga5

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 filePath
           
protected  String[] globalFiles
           
protected  String globalScript
           
protected  String helpFile
           
protected  String language
           
protected  String resourceFile
           
protected  String viewFile
           
 
Fields inherited from class javax.portlet.GenericPortlet
AUTOMATIC_RESOURCE_DISPATCH
 
Constructor Summary
ScriptingPortlet()
           
 
Method Summary
protected  void checkPath(String path)
           
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

filePath

protected String filePath

globalFiles

protected String[] globalFiles

globalScript

protected String globalScript

helpFile

protected String helpFile

language

protected String language

resourceFile

protected String resourceFile

viewFile

protected String viewFile
Constructor Detail

ScriptingPortlet

public ScriptingPortlet()
Method Detail

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,
                   PortletException
Overrides:
doHelp in class GenericPortlet
Throws:
IOException
PortletException

doView

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

init

public void init()
          throws PortletException
Overrides:
init in class GenericPortlet
Throws:
PortletException

processAction

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

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,
                          PortletException
Specified by:
serveResource in interface ResourceServingPortlet
Overrides:
serveResource in class GenericPortlet
Throws:
IOException
PortletException

checkPath

protected void checkPath(String path)
                  throws PortletException
Throws:
PortletException

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,
                       PortletException
Throws:
IOException
PortletException

writeErrorMessage

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

Liferay 6.2-ce-ga5