Class ServletCookieValueMethodArgumentResolver
java.lang.Object
org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
org.springframework.web.method.annotation.AbstractCookieValueMethodArgumentResolver
org.springframework.web.servlet.mvc.method.annotation.ServletCookieValueMethodArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class ServletCookieValueMethodArgumentResolver
extends org.springframework.web.method.annotation.AbstractCookieValueMethodArgumentResolver
An
AbstractCookieValueMethodArgumentResolver
that resolves cookie values from an HttpServletRequest
.- Since:
- 3.1
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.NamedValueInfo
-
Constructor Summary
ConstructorDescriptionServletCookieValueMethodArgumentResolver
(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
resolveName
(String cookieName, org.springframework.core.MethodParameter parameter, org.springframework.web.context.request.NativeWebRequest webRequest) void
setUrlPathHelper
(org.springframework.web.util.UrlPathHelper urlPathHelper) Methods inherited from class org.springframework.web.method.annotation.AbstractCookieValueMethodArgumentResolver
createNamedValueInfo, handleMissingValue, handleMissingValueAfterConversion, supportsParameter
Methods inherited from class org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
handleMissingValue, handleResolvedValue, resolveArgument
-
Constructor Details
-
ServletCookieValueMethodArgumentResolver
public ServletCookieValueMethodArgumentResolver(@Nullable org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory)
-
-
Method Details
-
setUrlPathHelper
public void setUrlPathHelper(org.springframework.web.util.UrlPathHelper urlPathHelper) -
resolveName
@Nullable protected Object resolveName(String cookieName, org.springframework.core.MethodParameter parameter, org.springframework.web.context.request.NativeWebRequest webRequest) throws Exception - Specified by:
resolveName
in classorg.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
- Throws:
Exception
-