public PagePortletControllerContext(
HttpServletRequest req,
HttpServletResponse resp,
PortletInvoker invoker,
ServletContext servletContext,
PortalPrepareResponse prepareResponse)
throws IllegalRequestException, IOException, ServletException, PortletInvokerException
{
super(req, resp);
Map<Key, Portlet> portlets = new HashMap<Key, Portlet>();
for (Portlet portlet : invoker.getPortlets())
{
PortletInfo portletInfo = portlet.getInfo();
String portletName = portletInfo.getName();
String applicationName = portletInfo.getApplicationName();
Key key = new Key(applicationName, portletName);
portlets.put(key, portlet);
}
this.invoker = invoker;
this.portlets = portlets;
this.prepareResponse = prepareResponse;
this.stateControllerContext = new StateControllerContextImpl(this);
this.eventControllerContext = new PageEventControllerContext(this, prepareResponse);
this.serialization = new PortletPageNavigationalStateSerialization(stateControllerContext);
}