org.apache.pluto
Class PortletContainerImpl

java.lang.Object
  extended by org.apache.pluto.PortletContainerImpl
All Implemented Interfaces:
PortletContainer

public class PortletContainerImpl
extends java.lang.Object
implements PortletContainer

Implements the Pluto Container.

Version:
$Id: PortletContainerImpl.java 219193 2005-07-15 12:57:13Z blumm $

Constructor Summary
PortletContainerImpl()
           
 
Method Summary
 void init(java.lang.String uniqueContainerName, javax.servlet.ServletConfig servletConfig, PortletContainerEnvironment environment, java.util.Properties properties)
          Initializes the portlet container.
 boolean isInitialized()
          Returns whether the container is already initialized or not.
 void portletLoad(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
          Indicates that the portlet must be initialized
 void processPortletAction(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
          Indicates that a portlet action occured in the current request and calls the processAction method of this portlet.
protected  void redirect(java.lang.String location, PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, InternalActionResponse _actionResponse)
           
 void renderPortlet(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
          Calls the render method of the given portlet window.
 void shutdown()
          Shuts down the portlet container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletContainerImpl

public PortletContainerImpl()
Method Detail

init

public void init(java.lang.String uniqueContainerName,
                 javax.servlet.ServletConfig servletConfig,
                 PortletContainerEnvironment environment,
                 java.util.Properties properties)
          throws PortletContainerException
Description copied from interface: PortletContainer
Initializes the portlet container.

Specified by:
init in interface PortletContainer
Parameters:
uniqueContainerName - container name that must be unqiue across all containers defined within this JVM. This name must be identical across JVMs.
servletConfig - the servlet configuration
environment - the portlet container environment including all services
properties - the portlet container specific properties may vary from container to container
Throws:
PortletContainerException - if an error occurs while initializing the container

shutdown

public void shutdown()
              throws PortletContainerException
Description copied from interface: PortletContainer
Shuts down the portlet container. After calling this method it is no longer valid to call any method on the portlet container.

Specified by:
shutdown in interface PortletContainer
Throws:
PortletContainerException - if an error occurs while shutting down the container

renderPortlet

public void renderPortlet(PortletWindow portletWindow,
                          javax.servlet.http.HttpServletRequest servletRequest,
                          javax.servlet.http.HttpServletResponse servletResponse)
                   throws javax.portlet.PortletException,
                          java.io.IOException,
                          PortletContainerException
Description copied from interface: PortletContainer
Calls the render method of the given portlet window.

Specified by:
renderPortlet in interface PortletContainer
Parameters:
portletWindow - the portlet Window
servletRequest - the servlet request
servletResponse - the servlet response
Throws:
javax.portlet.PortletException - if one portlet has trouble fulfilling the request
java.io.IOException - if the streaming causes an I/O problem
PortletContainerException - if the portlet container implementation has trouble fulfilling the request

processPortletAction

public void processPortletAction(PortletWindow portletWindow,
                                 javax.servlet.http.HttpServletRequest servletRequest,
                                 javax.servlet.http.HttpServletResponse servletResponse)
                          throws javax.portlet.PortletException,
                                 java.io.IOException,
                                 PortletContainerException
Description copied from interface: PortletContainer
Indicates that a portlet action occured in the current request and calls the processAction method of this portlet.

Specified by:
processPortletAction in interface PortletContainer
Parameters:
portletWindow - the portlet Window
servletRequest - the servlet request
servletResponse - the servlet response
Throws:
javax.portlet.PortletException - if one portlet has trouble fulfilling the request
PortletContainerException - if the portlet container implementation has trouble fulfilling the request
java.io.IOException

portletLoad

public void portletLoad(PortletWindow portletWindow,
                        javax.servlet.http.HttpServletRequest servletRequest,
                        javax.servlet.http.HttpServletResponse servletResponse)
                 throws javax.portlet.PortletException,
                        PortletContainerException
Description copied from interface: PortletContainer
Indicates that the portlet must be initialized

Specified by:
portletLoad in interface PortletContainer
Parameters:
portletWindow - the portlet Window
servletRequest - the servlet request
servletResponse - the servlet response
Throws:
javax.portlet.PortletException - if one portlet has trouble fulfilling the request
PortletContainerException - if the portlet container implementation has trouble fulfilling the request

isInitialized

public boolean isInitialized()
Description copied from interface: PortletContainer
Returns whether the container is already initialized or not.

Specified by:
isInitialized in interface PortletContainer
Returns:
true if the container is initialized

redirect

protected void redirect(java.lang.String location,
                        PortletWindow portletWindow,
                        javax.servlet.http.HttpServletRequest servletRequest,
                        javax.servlet.http.HttpServletResponse servletResponse,
                        InternalActionResponse _actionResponse)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003-2011 . All Rights Reserved.