|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.core.PortletContainerImpl
public class 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. |
void |
doServeResource(PortletWindow portletWindow,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Indicates that a portlet resource Serving occured in the current request and calls the processServeResource method of this portlet. |
void |
fireEvent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PortletWindow window,
Event event)
Fire Event for the portlet associated with the given portlet window and eventName |
java.lang.String |
getName()
Retrieve the unique container name |
OptionalContainerServices |
getOptionalContainerServices()
Retrieve the optional container services used by the container. |
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. |
javax.servlet.ServletContext |
getServletContext()
|
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 PortletContainer
servletContext
- the servlet context of the portal webapp.
PortletContainerException
- if an error occurs.public boolean isInitialized()
isInitialized
in interface PortletContainer
public void destroy()
destroy
in interface PortletContainer
public void doRender(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws PortletException, java.io.IOException, PortletContainerException
doRender
in interface PortletContainer
portletWindow
- the portlet window.request
- the servlet request.response
- the servlet response.
java.lang.IllegalStateException
- if the container is not initialized.
PortletException
java.io.IOException
PortletContainerException
Portlet.render(RenderRequest, RenderResponse)
public void doServeResource(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws PortletException, java.io.IOException, PortletContainerException
doServeResource
in interface PortletContainer
internalPortletWindow
- 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
public void doAction(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws PortletException, java.io.IOException, PortletContainerException
doAction
in interface PortletContainer
portletWindow
- the portlet window.request
- the servlet request.response
- the servlet response.
PortletException
java.io.IOException
PortletContainerException
Portlet.processAction(ActionRequest, ActionResponse)
public void doLoad(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws PortletException, java.io.IOException, PortletContainerException
doLoad
in interface PortletContainer
portletWindow
- the portlet window.request
- the servlet request.response
- the servlet response.
PortletException
java.io.IOException
PortletContainerException
public void doAdmin(PortletWindow portletWindow, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws PortletException, java.io.IOException, PortletContainerException
PortletContainer
doAdmin
in interface PortletContainer
portletWindow
- the portlet windowservletRequest
- the servlet requestservletResponse
- the servlet response
PortletContainerException
- if the request can not be fullfilled.
PortletException
java.io.IOException
public java.lang.String getName()
PortletContainer
getName
in interface PortletContainer
public RequiredContainerServices getRequiredContainerServices()
PortletContainer
getRequiredContainerServices
in interface PortletContainer
public OptionalContainerServices getOptionalContainerServices()
getOptionalContainerServices
in interface PortletContainer
public PortletAppDD getPortletApplicationDescriptor(java.lang.String context) throws PortletContainerException
PortletContainer
PortletAppDD
for the portlet
located at the supplied context.
Must not return null.
getPortletApplicationDescriptor
in interface PortletContainer
context
- the context of the portlet
PortletContainerException
- if the container has trouble obtaining
the context of the portlet, or retrieving
the PortletAppDD
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface EventContainer
getServletContext
in interface PortletContainer
public void fireEvent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PortletWindow window, Event event) throws PortletException, java.io.IOException
fireEvent
in interface EventContainer
portletWindow
- the portlet window.request
- the servlet request.response
- the servlet response.eventName
- the event name
PortletException
java.io.IOException
PortletContainerException
javax.portlet.EventPortlet#processEvent(javax.portlet.EventRequest, javax.portlet.EventResponse)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |