org.apache.jetspeed.container
Class JetspeedPortletContainerWrapper

java.lang.Object
  extended by org.apache.jetspeed.container.JetspeedPortletContainerWrapper
All Implemented Interfaces:
PortletContainerWrapper, org.apache.pluto.PortletContainer

public class JetspeedPortletContainerWrapper
extends Object
implements PortletContainerWrapper

Portlet Container Wrapper to secure access to portlet container.

Version:
$Id: JetspeedPortletContainerWrapper.java 516448 2007-03-09 16:25:47Z ate $
Author:
David Sean Taylor

Field Summary
private  String containerId
           
private  org.apache.pluto.services.PortletContainerEnvironment environment
           
private  boolean initialized
           
private static org.apache.commons.logging.Log log
           
private  org.apache.pluto.PortletContainer pluto
           
private  Properties properties
           
private  ServletRequestFactory requestFactory
           
private  ServletResponseFactory responseFactory
           
private  javax.servlet.ServletConfig servletConfig
           
 
Constructor Summary
JetspeedPortletContainerWrapper(org.apache.pluto.PortletContainer pluto, String containerId, javax.servlet.ServletConfig servletConfig, org.apache.pluto.services.PortletContainerEnvironment env)
           
JetspeedPortletContainerWrapper(org.apache.pluto.PortletContainer pluto, String containerId, javax.servlet.ServletConfig servletConfig, org.apache.pluto.services.PortletContainerEnvironment env, Properties properties)
           
 
Method Summary
 void init(String uniqueContainerId, javax.servlet.ServletConfig servletConfig, org.apache.pluto.services.PortletContainerEnvironment environment, Properties props)
          initialization is still handled outside component architecture, since Pluto is not a component
 boolean isInitialized()
           isInitialized
 void portletLoad(org.apache.pluto.om.window.PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
           
 void processPortletAction(org.apache.pluto.om.window.PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
           
 void renderPortlet(org.apache.pluto.om.window.PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
           
 void setRequestFactory(ServletRequestFactory requestFactory)
           
 void setResponseFactory(ServletResponseFactory responseFactory)
           
 void shutdown()
           
 void start()
          Allows starting of the container without providing calling the init() method without all of the arguments as the arguments have already been provided in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

private boolean initialized

log

private static final org.apache.commons.logging.Log log

pluto

private final org.apache.pluto.PortletContainer pluto

containerId

private final String containerId

properties

private final Properties properties

environment

private final org.apache.pluto.services.PortletContainerEnvironment environment

servletConfig

private final javax.servlet.ServletConfig servletConfig

requestFactory

private ServletRequestFactory requestFactory

responseFactory

private ServletResponseFactory responseFactory
Constructor Detail

JetspeedPortletContainerWrapper

public JetspeedPortletContainerWrapper(org.apache.pluto.PortletContainer pluto,
                                       String containerId,
                                       javax.servlet.ServletConfig servletConfig,
                                       org.apache.pluto.services.PortletContainerEnvironment env,
                                       Properties properties)

JetspeedPortletContainerWrapper

public JetspeedPortletContainerWrapper(org.apache.pluto.PortletContainer pluto,
                                       String containerId,
                                       javax.servlet.ServletConfig servletConfig,
                                       org.apache.pluto.services.PortletContainerEnvironment env)
Method Detail

start

public void start()
           throws org.apache.pluto.PortletContainerException
Allows starting of the container without providing calling the init() method without all of the arguments as the arguments have already been provided in the constructor.

Throws:
org.apache.pluto.PortletContainerException

init

public void init(String uniqueContainerId,
                 javax.servlet.ServletConfig servletConfig,
                 org.apache.pluto.services.PortletContainerEnvironment environment,
                 Properties props)
          throws org.apache.pluto.PortletContainerException
initialization is still handled outside component architecture, since Pluto is not a component

Specified by:
init in interface org.apache.pluto.PortletContainer
Throws:
org.apache.pluto.PortletContainerException

shutdown

public void shutdown()
              throws org.apache.pluto.PortletContainerException
Specified by:
shutdown in interface org.apache.pluto.PortletContainer
Throws:
org.apache.pluto.PortletContainerException

renderPortlet

public void renderPortlet(org.apache.pluto.om.window.PortletWindow portletWindow,
                          javax.servlet.http.HttpServletRequest servletRequest,
                          javax.servlet.http.HttpServletResponse servletResponse)
                   throws javax.portlet.PortletException,
                          IOException,
                          org.apache.pluto.PortletContainerException
Specified by:
renderPortlet in interface org.apache.pluto.PortletContainer
Throws:
javax.portlet.PortletException
IOException
org.apache.pluto.PortletContainerException

processPortletAction

public void processPortletAction(org.apache.pluto.om.window.PortletWindow portletWindow,
                                 javax.servlet.http.HttpServletRequest servletRequest,
                                 javax.servlet.http.HttpServletResponse servletResponse)
                          throws javax.portlet.PortletException,
                                 IOException,
                                 org.apache.pluto.PortletContainerException
Specified by:
processPortletAction in interface org.apache.pluto.PortletContainer
Throws:
javax.portlet.PortletException
IOException
org.apache.pluto.PortletContainerException

portletLoad

public void portletLoad(org.apache.pluto.om.window.PortletWindow portletWindow,
                        javax.servlet.http.HttpServletRequest servletRequest,
                        javax.servlet.http.HttpServletResponse servletResponse)
                 throws javax.portlet.PortletException,
                        org.apache.pluto.PortletContainerException
Specified by:
portletLoad in interface org.apache.pluto.PortletContainer
Throws:
javax.portlet.PortletException
org.apache.pluto.PortletContainerException

isInitialized

public boolean isInitialized()

isInitialized

Specified by:
isInitialized in interface org.apache.pluto.PortletContainer
Returns:
See Also:
PortletContainer.isInitialized()

setRequestFactory

public void setRequestFactory(ServletRequestFactory requestFactory)

setResponseFactory

public void setResponseFactory(ServletResponseFactory responseFactory)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.