|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletContainer
The PortletContainer
interface is the entrance point of the portlet
container. This singleton is normally called by the aggregation in a specific
order, meaning that each method of this singleton has to be called in a
defined way.
The base functionality of the portlet container can be enhanced or even modified by PortletContainerServices.
The methods of this class have to be called in the following order:
#init(java.lang.String, javax.servlet.ServletConfig, org.apache.pluto.services.PortletContainerEnvironment, java.util.Properties)
shutdown()
#renderPortlet(org.apache.pluto.om.window.PortletWindow, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
(for each portlet)#processPortletAction(org.apache.pluto.om.window.PortletWindow, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
(for portlet receiving the action request)
Method Summary | |
---|---|
void |
init(java.lang.String uniqueContainerName,
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,
HttpServletRequest servletRequest,
HttpServletResponse servletResponse)
Indicates that the portlet must be initialized |
void |
processPortletAction(PortletWindow portletWindow,
HttpServletRequest request,
HttpServletResponse response)
Indicates that a portlet action occured in the current request and calls the processAction method of this portlet. |
void |
renderPortlet(PortletWindow portletWindow,
HttpServletRequest request,
HttpServletResponse response)
Calls the render method of the given portlet window. |
void |
shutdown()
Shuts down the portlet container. |
Method Detail |
---|
void init(java.lang.String uniqueContainerName, ServletConfig servletConfig, PortletContainerEnvironment environment, java.util.Properties properties) throws PortletContainerException
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 container
PortletContainerException
- if an error occurs while initializing the containervoid shutdown() throws PortletContainerException
PortletContainerException
- if an error occurs while shutting down the containervoid renderPortlet(PortletWindow portletWindow, HttpServletRequest request, HttpServletResponse response) throws PortletException, java.io.IOException, PortletContainerException
portletWindow
- the portlet Windowrequest
- the servlet requestresponse
- the servlet response
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 requestvoid processPortletAction(PortletWindow portletWindow, HttpServletRequest request, HttpServletResponse response) throws PortletException, java.io.IOException, PortletContainerException
portletWindow
- the portlet Windowrequest
- the servlet requestresponse
- the servlet response
PortletException
- if one portlet has trouble fulfilling the request
PortletContainerException
- if the portlet container implementation has trouble fulfilling the request
java.io.IOException
void portletLoad(PortletWindow portletWindow, HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws PortletException, PortletContainerException
portletWindow
- the portlet WindowservletRequest
- the servlet requestservletResponse
- the servlet response
PortletException
- if one portlet has trouble fulfilling the request
PortletContainerException
- if the portlet container implementation has trouble fulfilling the requestboolean isInitialized()
true
if the container is initialized
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |