@Override public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException { String hstDispURL = resolveEmbeddedDispatchURL(request, response); if (hstDispURL != null) { HstResponseState portletResponseState = new HstPortletResponseState(request, response); request.setAttribute(HstResponseState.class.getName(), portletResponseState); PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher(hstDispURL); if (dispatcher != null) { dispatcher.include(request, response); portletResponseState.flush(); } } }
@Override public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException { if (!PortletConfigUtils.isEmpty(request.getResourceID())) { // only handle serveResource by ResourceID parameter HstMutablePortletRequestContext prc = createHstRequestContext(request, response); if (prc != null) { HstPortletResponseState portletResponseState = new HstPortletResponseState(request, response); processMimeResponseRequest(request, response, request.getResourceID(), portletResponseState); } } }
@Override public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException { if (request.getResourceID() != null && resolveEmbeddedDispatchURL(request,response) != null) { // only handle serveResource by ResourceID parameter HstResponseState portletResponseState = new HstPortletResponseState(request, response); PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher(request.getResourceID()); if (dispatcher != null) { dispatcher.include(request, response); portletResponseState.flush(); } } }
if (hstDispURL != null) { HstPortletResponseState portletResponseState = new HstPortletResponseState(request, response); request.setAttribute(HstResponseState.class.getName(), portletResponseState);
HstPortletResponseState portletResponseState = new HstPortletResponseState(request, response); request.setAttribute(HstResponseState.class.getName(), portletResponseState);