Class ETagArgumentResolver
java.lang.Object
org.springframework.data.rest.webmvc.support.ETagArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to resolve If-Match headers for optimistic locking handling ETag
.- Author:
- Pablo Lozano, Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) boolean
supportsParameter
(MethodParameter parameter)
-
Constructor Details
-
ETagArgumentResolver
public ETagArgumentResolver()
-
-
Method Details
-
supportsParameter
- Specified by:
supportsParameter
in interfaceHandlerMethodArgumentResolver
-
resolveArgument
public ETag resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception - Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
- Throws:
Exception
-