*/
@Override
public boolean synchronizedHandleRequest(VaadinSession session,
VaadinRequest request, VaadinResponse response) throws IOException {
VaadinPortletSession sess = (VaadinPortletSession) session;
PortletRequest portletRequest = ((VaadinPortletRequest) request)
.getPortletRequest();
PortletResponse portletResponse = ((VaadinPortletResponse) response)
.getPortletResponse();
// Finds the right UI
UI uI = null;
if (ServletPortletHelper.isUIDLRequest(request)) {
uI = session.getService().findUI(request);
}
if (portletRequest instanceof RenderRequest) {
sess.firePortletRenderRequest(uI, (RenderRequest) portletRequest,
(RenderResponse) portletResponse);
} else if (portletRequest instanceof ActionRequest) {
sess.firePortletActionRequest(uI, (ActionRequest) portletRequest,
(ActionResponse) portletResponse);
} else if (portletRequest instanceof EventRequest) {
sess.firePortletEventRequest(uI, (EventRequest) portletRequest,
(EventResponse) portletResponse);
} else if (portletRequest instanceof ResourceRequest) {
sess.firePortletResourceRequest(uI,
(ResourceRequest) portletRequest,
(ResourceResponse) portletResponse);
}
return false;