org.alfresco.web.portlet
Class ProxyPortlet
java.lang.Object
org.alfresco.web.portlet.ProxyPortlet
- All Implemented Interfaces:
- javax.portlet.Portlet
public class ProxyPortlet
- extends java.lang.Object
- implements javax.portlet.Portlet
Generic JSR-168 Portlet for exposing an Alfresco Web Script as a Portlet.
Accepts the following init-config:
scriptUrl => the initial URL to expose e.g. /share/service/sample/cmis/repo
Field Summary |
protected javax.portlet.PortletConfig |
config
|
protected java.lang.String |
initScriptUrl
|
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 |
config
protected javax.portlet.PortletConfig config
initScriptUrl
protected java.lang.String initScriptUrl
ProxyPortlet
public ProxyPortlet()
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,
java.io.IOException
- Specified by:
processAction
in interface javax.portlet.Portlet
- Throws:
javax.portlet.PortletException
javax.portlet.PortletSecurityException
java.io.IOException
render
public void render(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws javax.portlet.PortletException,
javax.portlet.PortletSecurityException,
java.io.IOException
- Specified by:
render
in interface javax.portlet.Portlet
- Throws:
javax.portlet.PortletException
javax.portlet.PortletSecurityException
java.io.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,
java.io.IOException
- Render Web Script view
- Parameters:
req
- res
-
- Throws:
javax.portlet.PortletException
javax.portlet.PortletSecurityException
java.io.IOException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.