Class SPDesktopServlet

    • Constructor Detail

      • SPDesktopServlet

        public SPDesktopServlet()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Reads the DriverConfig.properties file. Initializes the Portlet Registry files.
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Parameters:
        config - the ServletConfig Object
        Throws:
        javax.servlet.ServletException
      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws javax.servlet.ServletException,
                           IOException
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • getVisiblePortletWindows

        protected List<String> getVisiblePortletWindows​(PortletRegistryContext portletRegistryContext)
                                                 throws InvokerException
        Returns the list of visible portlet windows from the portlet registry.
        Parameters:
        portletRegistryContext - the PortletRegistryContext Object
        Returns:
        the list of visible portlet windows from the portlet registry.
        Throws:
        InvokerException
      • getPortletWindowState

        protected com.sun.portal.container.ChannelState getPortletWindowState​(javax.servlet.http.HttpServletRequest request,
                                                                              String portletWindowName)
        Gets the state of the portlet window identified by the specified name. It looks for the state in the request (current portlet window). If not found, it looks for it among the available portlets in the session.
        Parameters:
        request - the HttpServletRequest Object
        portletWindowName - the name of the portlet window
        Returns:
        the state of the specified portlet window.
      • getPortletWindowMode

        protected com.sun.portal.container.ChannelMode getPortletWindowMode​(javax.servlet.http.HttpServletRequest request,
                                                                            String portletWindowName)
        Gets the mode of the portlet window identified by the specified name. It looks for the mode in the request (current portlet window). If not found, it looks for it among the available portlets in the session.
        Parameters:
        request - the HttpServletRequest Object
        portletWindowName - the name of the portlet window
        Returns:
        the mode of the specified portlet window.
      • getPortletWindowStateFromSavedData

        protected com.sun.portal.container.ChannelState getPortletWindowStateFromSavedData​(javax.servlet.http.HttpServletRequest request,
                                                                                           String portletWindowName)
        Returns the portlet window state for the portlet window from the PortletWindowData that is in the session.
        Parameters:
        request - the HttpServletRequest Object
        portletWindowName - the name of the portlet window
        Returns:
        the portlet window state for the portlet window from session.
      • getPortletWindowModeFromSavedData

        protected com.sun.portal.container.ChannelMode getPortletWindowModeFromSavedData​(javax.servlet.http.HttpServletRequest request,
                                                                                         String portletWindowName)
        Returns the portlet window mode for the portlet window from the PortletWindowData that is in the session.
        Parameters:
        request - the HttpServletRequest Object
        portletWindowName - the name of the portlet window
        Returns:
        the portlet window mode for the portlet window from session.
      • getPortletContentObject

        protected PortletContent getPortletContentObject​(String portletWindowName,
                                                         javax.servlet.ServletContext context,
                                                         javax.servlet.http.HttpServletRequest request,
                                                         javax.servlet.http.HttpServletResponse response)
                                                  throws InvokerException
        Throws:
        InvokerException
      • getPresentationURI

        protected String getPresentationURI​(javax.servlet.http.HttpServletRequest request)
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse resp)
                   throws javax.servlet.ServletException,
                          IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doHead

        protected void doHead​(javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse resp)
                       throws javax.servlet.ServletException,
                              IOException
        Overrides:
        doHead in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doPut

        protected void doPut​(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse resp)
                      throws javax.servlet.ServletException,
                             IOException
        Overrides:
        doPut in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doDelete

        protected void doDelete​(javax.servlet.http.HttpServletRequest req,
                                javax.servlet.http.HttpServletResponse resp)
                         throws javax.servlet.ServletException,
                                IOException
        Overrides:
        doDelete in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doOptions

        protected void doOptions​(javax.servlet.http.HttpServletRequest req,
                                 javax.servlet.http.HttpServletResponse resp)
                          throws javax.servlet.ServletException,
                                 IOException
        Overrides:
        doOptions in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doTrace

        protected void doTrace​(javax.servlet.http.HttpServletRequest req,
                               javax.servlet.http.HttpServletResponse resp)
                        throws javax.servlet.ServletException,
                               IOException
        Overrides:
        doTrace in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException