public class PortletContainerImpl extends java.lang.Object implements PortletContainer
Constructor and Description |
---|
PortletContainerImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void init(java.lang.String uniqueContainerName, javax.servlet.ServletConfig servletConfig, PortletContainerEnvironment environment, java.util.Properties properties) throws PortletContainerException
PortletContainer
init
in interface PortletContainer
uniqueContainerName
- container name that must be unqiue across all containers defined within this JVM. This name must be identical across JVMs.servletConfig
- the servlet configurationenvironment
- the portlet container environment including all servicesproperties
- the portlet container specific properties may vary from container to containerPortletContainerException
- if an error occurs while initializing the containerpublic void shutdown() throws PortletContainerException
PortletContainer
shutdown
in interface PortletContainer
PortletContainerException
- if an error occurs while shutting down the containerpublic void renderPortlet(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws javax.portlet.PortletException, java.io.IOException, PortletContainerException
PortletContainer
renderPortlet
in interface PortletContainer
portletWindow
- the portlet WindowservletRequest
- the servlet requestservletResponse
- the servlet responsejavax.portlet.PortletException
- if one portlet has trouble fulfilling the requestjava.io.IOException
- if the streaming causes an I/O problemPortletContainerException
- if the portlet container implementation has trouble fulfilling the requestpublic void processPortletAction(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws javax.portlet.PortletException, java.io.IOException, PortletContainerException
PortletContainer
processPortletAction
in interface PortletContainer
portletWindow
- the portlet WindowservletRequest
- the servlet requestservletResponse
- the servlet responsejavax.portlet.PortletException
- if one portlet has trouble fulfilling the requestPortletContainerException
- if the portlet container implementation has trouble fulfilling the requestjava.io.IOException
public void portletLoad(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws javax.portlet.PortletException, PortletContainerException
PortletContainer
portletLoad
in interface PortletContainer
portletWindow
- the portlet WindowservletRequest
- the servlet requestservletResponse
- the servlet responsejavax.portlet.PortletException
- if one portlet has trouble fulfilling the requestPortletContainerException
- if the portlet container implementation has trouble fulfilling the requestpublic boolean isInitialized()
PortletContainer
isInitialized
in interface PortletContainer
true
if the container is initializedprotected void redirect(java.lang.String location, PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, InternalActionResponse _actionResponse) throws java.io.IOException
java.io.IOException
Copyright © 2003-2013 . All Rights Reserved.