com.liferay.util.bridges.scripting
Class ScriptingPortlet
java.lang.Object
javax.portlet.GenericPortlet
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
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 |
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
ScriptingPortlet
public ScriptingPortlet()
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