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
PortletContainerinit in interface PortletContaineruniqueContainerName - 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
PortletContainershutdown in interface PortletContainerPortletContainerException - 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
PortletContainerrenderPortlet in interface PortletContainerportletWindow - 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
PortletContainerprocessPortletAction in interface PortletContainerportletWindow - 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.IOExceptionpublic void portletLoad(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws javax.portlet.PortletException, PortletContainerException
PortletContainerportletLoad in interface PortletContainerportletWindow - 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()
PortletContainerisInitialized in interface PortletContainertrue 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.IOExceptionCopyright © 2003-2013 . All Rights Reserved.