Examples of NoHandlerFoundException


Examples of org.resthub.web.springmvc.router.exceptions.NoHandlerFoundException

                        return actionDefinition;
                    }
                }
            }
        }
        throw new NoHandlerFoundException(action, args);
    }
View Full Code Here

Examples of org.springframework.web.portlet.NoHandlerFoundException

  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.
View Full Code Here

Examples of org.springframework.web.portlet.NoHandlerFoundException

          }
          return targetHandlerMethods.get(bestMappingMatch);
        }
      }
      else {
        throw new NoHandlerFoundException("No matching handler method found for portlet request", request);
      }
    }
View Full Code Here

Examples of org.springframework.web.portlet.NoHandlerFoundException

          }
          return targetHandlerMethods.get(bestMappingMatch);
        }
      }
      else {
        throw new NoHandlerFoundException("No matching handler method found for portlet request", request);
      }
    }
View Full Code Here

Examples of org.springframework.web.portlet.NoHandlerFoundException

  @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.
View Full Code Here

Examples of org.springframework.web.servlet.NoHandlerFoundException

  @Test
  public void noHandlerFoundException() {
    ServletServerHttpRequest req = new ServletServerHttpRequest(
        new MockHttpServletRequest("GET","/resource"));
    Exception ex = new NoHandlerFoundException(req.getMethod().toString(),
        req.getServletRequest().getRequestURI(),req.getHeaders());
    testException(ex);
  }
View Full Code Here

Examples of org.springframework.web.servlet.NoHandlerFoundException

  @Test
  public void handleNoHandlerFoundException() throws Exception {
    ServletServerHttpRequest req = new ServletServerHttpRequest(
        new MockHttpServletRequest("GET","/resource"));
    NoHandlerFoundException ex = new NoHandlerFoundException(req.getMethod().name(),
        req.getServletRequest().getRequestURI(),req.getHeaders());
    ModelAndView mav = exceptionResolver.resolveException(request, response, null, ex);
    assertNotNull("No ModelAndView returned", mav);
    assertTrue("No Empty ModelAndView returned", mav.isEmpty());
    assertEquals("Invalid status code", 404, response.getStatus());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.