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:
 HandlerMethodArgumentResolver
public class ServletCookieValueMethodArgumentResolver
extends 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
AbstractNamedValueMethodArgumentResolver.NamedValueInfo - 
Constructor Summary
ConstructorsConstructorDescription - 
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectresolveName(String cookieName, MethodParameter parameter, NativeWebRequest webRequest) Resolve the given parameter type and value name into an argument value.voidsetUrlPathHelper(UrlPathHelper urlPathHelper) Methods inherited from class org.springframework.web.method.annotation.AbstractCookieValueMethodArgumentResolver
createNamedValueInfo, handleMissingValue, handleMissingValueAfterConversion, supportsParameterMethods inherited from class org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
handleMissingValue, handleResolvedValue, resolveArgument 
- 
Constructor Details
- 
ServletCookieValueMethodArgumentResolver
 
 - 
 - 
Method Details
- 
setUrlPathHelper
 - 
resolveName
@Nullable protected Object resolveName(String cookieName, MethodParameter parameter, NativeWebRequest webRequest) throws Exception Description copied from class:AbstractNamedValueMethodArgumentResolverResolve the given parameter type and value name into an argument value.- Specified by:
 resolveNamein classAbstractNamedValueMethodArgumentResolver- Parameters:
 cookieName- the name of the value being resolvedparameter- the method parameter to resolve to an argument value (pre-nested in case of aOptionaldeclaration)webRequest- the current request- Returns:
 - the resolved argument (may be 
null) - Throws:
 Exception- in case of errors
 
 -