Class WebScriptPortlet

  • All Implemented Interfaces:
    javax.portlet.Portlet

    public class WebScriptPortlet
    extends java.lang.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Constructor Detail

      • WebScriptPortlet

        public WebScriptPortlet()
    • Method Detail

      • 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 - RenderRequest
        res - RenderResponse
        Throws:
        javax.portlet.PortletException
        javax.portlet.PortletSecurityException
        java.io.IOException