org.springframework.extensions.webscripts.portlet
Class WebScriptPortlet
java.lang.Object
org.springframework.extensions.webscripts.portlet.WebScriptPortlet
- All Implemented Interfaces:
- javax.portlet.Portlet
public class WebScriptPortlet
- extends Object
- implements javax.portlet.Portlet
Generic JSR-168 Portlet for hosting an Alfresco Web Script as a Portlet.
Accepts the following init-config:
scriptUrl => the url of the web script to host e.g. /alfresco/service/mytasks
- Author:
- davidc
Method Summary |
void |
destroy()
|
protected void |
doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
Render Web Script view |
void |
init(javax.portlet.PortletConfig config)
|
void |
processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
|
void |
render(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initScriptUrl
protected String initScriptUrl
container
protected RuntimeContainer container
authenticatorFactory
protected PortletAuthenticatorFactory authenticatorFactory
WebScriptPortlet
public WebScriptPortlet()
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 req,
javax.portlet.ActionResponse res)
throws javax.portlet.PortletException,
javax.portlet.PortletSecurityException,
IOException
- Specified by:
processAction
in interface javax.portlet.Portlet
- Throws:
javax.portlet.PortletException
javax.portlet.PortletSecurityException
IOException
render
public void render(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws javax.portlet.PortletException,
javax.portlet.PortletSecurityException,
IOException
- Specified by:
render
in interface javax.portlet.Portlet
- Throws:
javax.portlet.PortletException
javax.portlet.PortletSecurityException
IOException
destroy
public void destroy()
- Specified by:
destroy
in interface javax.portlet.Portlet
doView
protected void doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws javax.portlet.PortletException,
javax.portlet.PortletSecurityException,
IOException
- Render Web Script view
- Parameters:
req
- res
-
- Throws:
javax.portlet.PortletException
javax.portlet.PortletSecurityException
IOException
Copyright © 2009 SpringSource, Inc. All Rights Reserved.