private VaadinPortletResponse createVaadinResponse( PortletResponse response) { return new VaadinPortletResponse(response, getService()); }
@Override public void destroy() { super.destroy(); getService().destroy(); }
/** * Wraps the request in a (possibly portal specific) Vaadin portlet request. * * @param request * The original PortletRequest * @return A wrapped version of the PortletRequest */ protected VaadinPortletRequest createVaadinRequest(PortletRequest request) { PortalContext portalContext = request.getPortalContext(); String portalInfo = portalContext.getPortalInfo() .toLowerCase(Locale.ROOT).trim(); VaadinPortletService service = getService(); if (portalInfo.contains("gatein")) { return new VaadinGateInRequest(request, service); } if (portalInfo.contains("liferay")) { return new VaadinLiferayRequest(request, service); } if (portalInfo.contains("websphere portal")) { return new VaadinWebSpherePortalRequest(request, service); } if (portalInfo.contains("weblogic portal")) { return new VaadinWebLogicPortalRequest(request, service); } return new VaadinPortletRequest(request, service); }
/** * @param request * @param response * @throws PortletException * @throws IOException * * @deprecated As of 7.0. Will likely change or be removed in a future * version */ @Deprecated protected void handleRequest(PortletRequest request, PortletResponse response) throws PortletException, IOException { CurrentInstance.clearAll(); try { getService().handleRequest(createVaadinRequest(request), createVaadinResponse(response)); } catch (ServiceException e) { throw new PortletException(e); } }