throw new NoHandlerFoundException("No matching handler method found for portlet request", request);
throw new NoHandlerFoundException("No matching handler method found for portlet request", request);
/** * No handler found -> throw appropriate exception. * @param request current portlet request * @param response current portlet response * @throws Exception if preparing the response failed */ protected void noHandlerFound(PortletRequest request, PortletResponse response) throws Exception { if (pageNotFoundLogger.isWarnEnabled()) { pageNotFoundLogger.warn("No handler found for current request " + "in DispatcherPortlet with name '" + getPortletName() + "', mode '" + request.getPortletMode() + "', phase '" + request.getAttribute(PortletRequest.LIFECYCLE_PHASE) + "', parameters " + StylerUtils.style(request.getParameterMap())); } throw new NoHandlerFoundException("No handler found for portlet request", request); }
/** * No handler found -> throw appropriate exception. * @param request current portlet request * @param response current portlet response * @throws Exception if preparing the response failed */ protected void noHandlerFound(PortletRequest request, PortletResponse response) throws Exception { if (pageNotFoundLogger.isWarnEnabled()) { pageNotFoundLogger.warn("No handler found for current request " + "in DispatcherPortlet with name '" + getPortletName() + "', mode '" + request.getPortletMode() + "', phase '" + request.getAttribute(PortletRequest.LIFECYCLE_PHASE) + "', parameters " + StylerUtils.style(request.getParameterMap())); } throw new NoHandlerFoundException("No handler found for portlet request", request); }
public ModelAndView handleResourceRequest( ResourceRequest request, ResourceResponse response) throws Exception { if (!(this.portletInstance instanceof ResourceServingPortlet)) { throw new NoHandlerFoundException("Cannot handle resource request - target portlet [" + this.portletInstance.getClass() + " does not implement ResourceServingPortlet"); } ResourceServingPortlet resourcePortlet = (ResourceServingPortlet) this.portletInstance; // Delegate to PortletContentGenerator for checking and preparing. checkAndPrepare(request, response); // Execute in synchronized block if required. if (isSynchronizeOnSession()) { PortletSession session = request.getPortletSession(false); if (session != null) { Object mutex = PortletUtils.getSessionMutex(session); synchronized (mutex) { resourcePortlet.serveResource(request, response); return null; } } } resourcePortlet.serveResource(request, response); return null; }
@Override public ModelAndView handleResourceRequest( ResourceRequest request, ResourceResponse response) throws Exception { if (!(this.portletInstance instanceof ResourceServingPortlet)) { throw new NoHandlerFoundException("Cannot handle resource request - target portlet [" + this.portletInstance.getClass() + " does not implement ResourceServingPortlet"); } ResourceServingPortlet resourcePortlet = (ResourceServingPortlet) this.portletInstance; // Delegate to PortletContentGenerator for checking and preparing. checkAndPrepare(request, response); // Execute in synchronized block if required. if (isSynchronizeOnSession()) { PortletSession session = request.getPortletSession(false); if (session != null) { Object mutex = PortletUtils.getSessionMutex(session); synchronized (mutex) { resourcePortlet.serveResource(request, response); return null; } } } resourcePortlet.serveResource(request, response); return null; }