public enum HttpMethodHandlerMethodArgumentResolver extends Enum<HttpMethodHandlerMethodArgumentResolver> implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to provide HttpMethod
instances for innjection into MVC controller
methods.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
boolean |
supportsParameter(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(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public HttpMethod resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception
resolveArgument
in interface HandlerMethodArgumentResolver
Exception
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.