HttpServletRequest servletRequest,
HttpServletResponse servletResponse)
throws PortletException, IOException, PortletContainerException
{
PortletContainerServices.prepare(uniqueContainerName);
PortletInvoker invoker = null;
if (log.isDebugEnabled())
{
log.debug("PortletContainerImpl.performPortletAction(" + portletWindow.getId() + ") called.");
}
String location = null;
InternalActionResponse _actionResponse = null;
ActionRequest actionRequest = null;
try
{
/*ActionRequest*/
actionRequest =
PortletObjectAccess.getActionRequest(portletWindow,
servletRequest,
servletResponse);
ActionResponse actionResponse = PortletObjectAccess.getActionResponse(portletWindow,
servletRequest,
servletResponse);
invoker = PortletInvokerAccess.getPortletInvoker(portletWindow.getPortletEntity().getPortletDefinition());
_actionResponse = (InternalActionResponse)actionResponse;
// call action() at the portlet
invoker.action(actionRequest, actionResponse);
location = _actionResponse.getRedirectLocation();
}
catch (PortletException e)
{