public class ServletCookieValueMethodArgumentResolver extends AbstractCookieValueMethodArgumentResolver
AbstractCookieValueMethodArgumentResolver
that resolves cookie values from an HttpServletRequest
.AbstractNamedValueMethodArgumentResolver.NamedValueInfo
Constructor and Description |
---|
ServletCookieValueMethodArgumentResolver(ConfigurableBeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
protected Object |
resolveName(String cookieName,
MethodParameter parameter,
NativeWebRequest webRequest)
Resolves the given parameter type and value name into an argument value.
|
void |
setUrlPathHelper(UrlPathHelper urlPathHelper) |
createNamedValueInfo, handleMissingValue, supportsParameter
handleResolvedValue, resolveArgument
public ServletCookieValueMethodArgumentResolver(ConfigurableBeanFactory beanFactory)
public void setUrlPathHelper(UrlPathHelper urlPathHelper)
protected Object resolveName(String cookieName, MethodParameter parameter, NativeWebRequest webRequest) throws Exception
AbstractNamedValueMethodArgumentResolver
resolveName
in class AbstractNamedValueMethodArgumentResolver
cookieName
- the name of the value being resolvedparameter
- the method parameter to resolve to an argument valuewebRequest
- the current requestnull
Exception
- in case of errors