Package org.springframework.web.bind.annotation

Examples of org.springframework.web.bind.annotation.MatrixVariable


    return true;
  }

  @Override
  protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
    MatrixVariable annotation = parameter.getParameterAnnotation(MatrixVariable.class);
    return new PathParamNamedValueInfo(annotation);
  }
View Full Code Here


* @since 3.2
*/
public class MatrixVariableMapMethodArgumentResolver implements HandlerMethodArgumentResolver {

  public boolean supportsParameter(MethodParameter parameter) {
    MatrixVariable paramAnnot = parameter.getParameterAnnotation(MatrixVariable.class);
    if (paramAnnot != null) {
      if (Map.class.isAssignableFrom(parameter.getParameterType())) {
        return !StringUtils.hasText(paramAnnot.value());
      }
    }
    return false;
  }
View Full Code Here

    return true;
  }

  @Override
  protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
    MatrixVariable annotation = parameter.getParameterAnnotation(MatrixVariable.class);
    return new PathParamNamedValueInfo(annotation);
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.bind.annotation.MatrixVariable

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.