Package org.springframework.web.servlet.mvc.multiaction

Examples of org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException


      }
      else {
        if (!allowedMethods.isEmpty()) {
          throw new HttpRequestMethodNotSupportedException(request.getMethod(), StringUtils.toStringArray(allowedMethods));
        }
        throw new NoSuchRequestHandlingMethodException(lookupPath, request.getMethod(), request.getParameterMap());
      }
    }
View Full Code Here


      }
      else {
        if (!allowedMethods.isEmpty()) {
          throw new HttpRequestMethodNotSupportedException(request.getMethod(), StringUtils.toStringArray(allowedMethods));
        }
        throw new NoSuchRequestHandlingMethodException(lookupPath, request.getMethod(), request.getParameterMap());
      }
    }
View Full Code Here

          }
        }
        return targetHandlerMethods.get(bestMappingMatch);
      }
      else {
        throw new NoSuchRequestHandlingMethodException(lookupPath, request.getMethod(), request.getParameterMap());
      }
    }
View Full Code Here

      }
      else {
        if (!allowedMethods.isEmpty()) {
          throw new HttpRequestMethodNotSupportedException(request.getMethod(), StringUtils.toStringArray(allowedMethods));
        }
        throw new NoSuchRequestHandlingMethodException(lookupPath, request.getMethod(), request.getParameterMap());
      }
    }
View Full Code Here

    }
  }

  @Test
  public void noSuchRequestHandlingMethod() {
    Exception ex = new NoSuchRequestHandlingMethodException("GET", TestController.class);
    testException(ex);
  }
View Full Code Here

    request.setMethod("GET");
  }

  @Test
  public void handleNoSuchRequestHandlingMethod() {
    NoSuchRequestHandlingMethodException ex = new NoSuchRequestHandlingMethodException(request);
    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

        if (!allowedMethods.isEmpty()) {
          throw new HttpRequestMethodNotSupportedException(request.getMethod(),
              StringUtils.toStringArray(allowedMethods));
        }
        else {
          throw new NoSuchRequestHandlingMethodException(lookupPath, request.getMethod(),
              request.getParameterMap());
        }
      }
    }
View Full Code Here

          }
        }
        return targetHandlerMethods.get(bestMappingMatch);
      }
      else {
        throw new NoSuchRequestHandlingMethodException(lookupPath, request.getMethod(), request.getParameterMap());
      }
    }
View Full Code Here

      else {
        if (!allowedMethods.isEmpty()) {
          throw new HttpRequestMethodNotSupportedException(request.getMethod(),
              StringUtils.toStringArray(allowedMethods));
        }
        throw new NoSuchRequestHandlingMethodException(lookupPath, request.getMethod(),
            request.getParameterMap());
      }
    }
View Full Code Here

   */
  public final String getHandlerMethodName(HttpServletRequest request) throws NoSuchRequestHandlingMethodException {
    String urlPath = this.urlPathHelper.getLookupPathForRequest(request);
    String name = getHandlerMethodNameForUrlPath(request, urlPath);
    if (name == null) {
      throw new NoSuchRequestHandlingMethodException(request);
    }
    if (logger.isDebugEnabled()) {
      logger.debug("Returning handler method name '" + name + "' for lookup path: " + urlPath);
    }
    return name;
View Full Code Here

TOP

Related Classes of org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException

Copyright © 2018 www.massapicom. 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.