| java.lang.Object com.sun.portal.portletappengine.impl.RequestResponseFactoryImpl
RequestResponseFactoryImpl | public class RequestResponseFactoryImpl implements RequestResponseFactory(Code) | | The request and response factory is responsible for generating the
Portlet request and response objects for the Portlet Application Servlet
Engine.
Object pooling is used in order to optimize the process and avoid messive
generation of objects.There are 4 pools the request and response factory
maintains:
- Portlet request pool
- Action response pool
- Portlet response pool
The get**() methods are used to get a reusable object from the pools.
The release**() methods are used to release objects back to the pools.
Clients of this class are responsible for releasing the corresponding
objects by calling these methods.
|
Method Summary | |
public void | destroy() Clears the pool objects. | public ActionRequest | getActionRequest(HttpServletRequest req, HttpServletResponse res, PortletContainerActionRequest pContReq, PortletContainerActionResponse pContRes, PortletContext context, PortalContext portalContext, PortletDescriptor pDescriptor, StringWriter writer) Gets a reusable action request object from the pool. | public ActionResponse | getActionResponse(HttpServletRequest req, HttpServletResponse res, ActionRequest aReq, PortletContainerActionRequest pContReq, PortletContainerActionResponse pContRes) Gets a reusable action response object from the pool. | public EventRequest | getEventRequest(HttpServletRequest req, HttpServletResponse res, PortletContainerEventRequest pceRequest, PortletContainerEventResponse pceResponse, PortletContext context, PortalContext portalContext, PortletDescriptor pDescriptor) | public EventResponse | getEventResponse(PortletContainerEventResponse pceResponse) | public RenderRequest | getRenderRequest(HttpServletRequest req, HttpServletResponse res, PortletContainerRenderRequest pContReq, PortletContainerRenderResponse pContRes, PortletContext context, PortalContext portalContext, PortletDescriptor pDescriptor) Gets a reusable render request object from the pool. | public RenderResponse | getRenderResponse(HttpServletRequest req, HttpServletResponse res, RenderRequest rReq, PortletContainerRenderRequest pContReq, PortletContainerRenderResponse pContRes, StringWriter writer, ByteArrayOutputStream output, PortletDescriptor pDescriptor) Gets a reusable portlet response object from the pool.
Parameters: res - The http servlet response object Parameters: writer - The StringWriter that will be used as thewriter when RenderResponse.getWriter() is called. | public void | releaseActionRequest(ActionRequest actionReq) Releases the action request object back to the pool. | public void | releaseActionResponse(ActionResponse actionRes) Releases the action response object back to the pool. | public void | releaseEventRequest(EventRequest ereq) | public void | releaseEventResponse(EventResponse eres) | public void | releaseRenderRequest(RenderRequest renderReq) Releases the render request object back to the pool. | public void | releaseRenderResponse(RenderResponse portletRes) Releases the portlet response object back to the pool. |
RequestResponseFactoryImpl | public RequestResponseFactoryImpl(ServletContext context)(Code) | | Initializes the global variables.
Parameters: context - The servlet context |
destroy | public void destroy()(Code) | | Clears the pool objects.
|
releaseActionRequest | public void releaseActionRequest(ActionRequest actionReq)(Code) | | Releases the action request object back to the pool.
Parameters: actionReq - The ActionRequest |
releaseActionResponse | public void releaseActionResponse(ActionResponse actionRes)(Code) | | Releases the action response object back to the pool.
Parameters: actionRes - The ActionResponse |
releaseRenderRequest | public void releaseRenderRequest(RenderRequest renderReq)(Code) | | Releases the render request object back to the pool.
Parameters: renderReq - The RenderRequest |
releaseRenderResponse | public void releaseRenderResponse(RenderResponse portletRes)(Code) | | Releases the portlet response object back to the pool.
Parameters: portletRes - The RenderResponse |
|
|