public class ServletCookieValueMethodArgumentResolver extends AbstractCookieValueMethodArgumentResolver
AbstractCookieValueMethodArgumentResolver
that resolves cookie values from an HttpServletRequest
.AbstractNamedValueMethodArgumentResolver.NamedValueInfo
Modifier and Type | Field and Description |
---|---|
private UrlPathHelper |
urlPathHelper |
Constructor and Description |
---|
ServletCookieValueMethodArgumentResolver(ConfigurableBeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
resolveName(java.lang.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
private UrlPathHelper urlPathHelper
public ServletCookieValueMethodArgumentResolver(ConfigurableBeanFactory beanFactory)
public void setUrlPathHelper(UrlPathHelper urlPathHelper)
protected java.lang.Object resolveName(java.lang.String cookieName, MethodParameter parameter, NativeWebRequest webRequest) throws java.lang.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
java.lang.Exception
- in case of errors