Package org.springframework.web.servlet.mvc.method

Examples of org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping


   * @throws IllegalArgumentException if the mapping name is not found or
   * if there is no unique match
   * @since 4.1
   */
  public static MethodArgumentBuilder fromMappingName(String mappingName) {
    RequestMappingInfoHandlerMapping handlerMapping = getRequestMappingInfoHandlerMapping();
    List<HandlerMethod> handlerMethods = handlerMapping.getHandlerMethodsForMappingName(mappingName);
    if (handlerMethods == null) {
      throw new IllegalArgumentException("Mapping mappingName not found: " + mappingName);
    }
    if (handlerMethods.size() != 1) {
      throw new IllegalArgumentException(
View Full Code Here

TOP

Related Classes of org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping

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.