|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.pluto.core.PortletContainerImpl
Default Pluto Container implementation.
| Constructor Summary | |
PortletContainerImpl(java.lang.String name,
RequiredContainerServices requiredServices,
OptionalContainerServices optionalServices)
Default Constructor. |
|
| Method Summary | |
void |
destroy()
Destroy this container. |
void |
doAction(PortletWindow portletWindow,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process action for the portlet associated with the given portlet window. |
void |
doAdmin(PortletWindow portletWindow,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Indicates that the portal needs to perform administrative actions upon the portlet and/or portlet application. |
void |
doLoad(PortletWindow portletWindow,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Loads the portlet associated with the specified portlet window. |
void |
doRender(PortletWindow portletWindow,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Renders the portlet associated with the specified portlet window. |
java.lang.String |
getName()
Retrieve the unique container name |
OptionalContainerServices |
getOptionalContainerServices()
Retrieve the optional container services used by the container. |
org.apache.pluto.descriptors.portlet.PortletAppDD |
getPortletApplicationDescriptor(java.lang.String context)
Retrieve the PortletAppDD for the portlet
located at the supplied context. |
RequiredContainerServices |
getRequiredContainerServices()
Retreive the required container services associated with this container. |
void |
init(javax.servlet.ServletContext servletContext)
Initialize the container for use within the given configuration scope. |
boolean |
isInitialized()
Determine whether this container has been initialized or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PortletContainerImpl(java.lang.String name,
RequiredContainerServices requiredServices,
OptionalContainerServices optionalServices)
name - the name of the container.requiredServices - the required container services implementation.optionalServices - the optional container services implementation.| Method Detail |
public void init(javax.servlet.ServletContext servletContext)
throws PortletContainerException
init in interface PortletContainerservletContext - the servlet context of the portal webapp.
PortletContainerException - if an error occurs.public boolean isInitialized()
isInitialized in interface PortletContainerpublic void destroy()
destroy in interface PortletContainer
public void doRender(PortletWindow portletWindow,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.portlet.PortletException,
java.io.IOException,
PortletContainerException
doRender in interface PortletContainerportletWindow - the portlet window.request - the servlet request.response - the servlet response.
java.lang.IllegalStateException - if the container is not initialized.
javax.portlet.PortletException
java.io.IOException
PortletContainerExceptionPortlet.render(javax.portlet.RenderRequest,javax.portlet.RenderResponse)
public void doAction(PortletWindow portletWindow,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.portlet.PortletException,
java.io.IOException,
PortletContainerException
doAction in interface PortletContainerportletWindow - the portlet window.request - the servlet request.response - the servlet response.
javax.portlet.PortletException
java.io.IOException
PortletContainerExceptionPortlet.processAction(javax.portlet.ActionRequest,javax.portlet.ActionResponse)
public void doLoad(PortletWindow portletWindow,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.portlet.PortletException,
java.io.IOException,
PortletContainerException
doLoad in interface PortletContainerportletWindow - the portlet window.request - the servlet request.response - the servlet response.
javax.portlet.PortletException
java.io.IOException
PortletContainerException
public void doAdmin(PortletWindow portletWindow,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
throws javax.portlet.PortletException,
java.io.IOException,
PortletContainerException
PortletContainer
doAdmin in interface PortletContainerportletWindow - the portlet windowservletRequest - the servlet requestservletResponse - the servlet response
PortletContainerException - if the request can not be fullfilled.
javax.portlet.PortletException
java.io.IOExceptionpublic java.lang.String getName()
PortletContainer
getName in interface PortletContainerpublic RequiredContainerServices getRequiredContainerServices()
PortletContainer
getRequiredContainerServices in interface PortletContainerpublic OptionalContainerServices getOptionalContainerServices()
getOptionalContainerServices in interface PortletContainer
public org.apache.pluto.descriptors.portlet.PortletAppDD getPortletApplicationDescriptor(java.lang.String context)
throws PortletContainerException
PortletContainerPortletAppDD for the portlet
located at the supplied context.
Must not return null.
getPortletApplicationDescriptor in interface PortletContainercontext - the context of the portlet
PortletContainerException - if the container has trouble obtaining
the context of the portlet, or retrieving
the PortletAppDD
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||