actionWindowConfig = PortletWindowConfig.fromId(actionWindowId);
}
// Action window config will only exist if there is an action request.
if (actionWindowConfig != null) {
PortletWindowImpl portletWindow = new PortletWindowImpl(container,
actionWindowConfig, portalURL);
if (LOG.isDebugEnabled()) {
LOG.debug("Processing action request for window: "
+ portletWindow.getId().getStringId());
}
try {
container.doAction(portletWindow, request, response);
} catch (PortletContainerException ex) {
LOG.error(ex.getMessage(), ex);
throw new ServletException(ex);
} catch (PortletException ex) {
LOG.error(ex.getMessage(), ex);
throw new ServletException(ex);
}
if (LOG.isDebugEnabled()) {
LOG.debug("Action request processed.\n\n");
}
}
//Resource request
else if (resourceWindowConfig != null) {
PortletWindowImpl portletWindow = new PortletWindowImpl(container,
resourceWindowConfig, portalURL);
if (LOG.isDebugEnabled()) {
LOG.debug("Processing resource Serving request for window: "
+ portletWindow.getId().getStringId());
}
try {
container.doServeResource(portletWindow, request, response);
} catch (PortletContainerException ex) {
LOG.error(ex.getMessage(), ex);