public enum HttpMethodHandlerMethodArgumentResolver extends Enum<HttpMethodHandlerMethodArgumentResolver> implements org.springframework.web.method.support.HandlerMethodArgumentResolver
HandlerMethodArgumentResolver to provide HttpMethod instances for innjection into MVC controller
methods.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.HttpMethod |
resolveArgument(org.springframework.core.MethodParameter parameter,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest,
org.springframework.web.bind.support.WebDataBinderFactory binderFactory) |
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter) |
static HttpMethodHandlerMethodArgumentResolver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethodHandlerMethodArgumentResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpMethodHandlerMethodArgumentResolver INSTANCE
public static HttpMethodHandlerMethodArgumentResolver[] values()
for (HttpMethodHandlerMethodArgumentResolver c : HttpMethodHandlerMethodArgumentResolver.values()) System.out.println(c);
public static HttpMethodHandlerMethodArgumentResolver valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean supportsParameter(org.springframework.core.MethodParameter parameter)
supportsParameter in interface org.springframework.web.method.support.HandlerMethodArgumentResolverpublic org.springframework.http.HttpMethod resolveArgument(org.springframework.core.MethodParameter parameter,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest,
org.springframework.web.bind.support.WebDataBinderFactory binderFactory)
throws Exception
resolveArgument in interface org.springframework.web.method.support.HandlerMethodArgumentResolverExceptionCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.