org.springframework.web.servlet.mvc.method.annotation.support
Class ServletCookieValueMethodArgumentResolver
java.lang.Object
org.springframework.web.method.annotation.support.AbstractNamedValueMethodArgumentResolver
org.springframework.web.method.annotation.support.AbstractCookieValueMethodArgumentResolver
org.springframework.web.servlet.mvc.method.annotation.support.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
urlPathHelper
private UrlPathHelper urlPathHelper
ServletCookieValueMethodArgumentResolver
public ServletCookieValueMethodArgumentResolver(ConfigurableBeanFactory beanFactory)
setUrlPathHelper
public void setUrlPathHelper(UrlPathHelper urlPathHelper)
resolveName
protected java.lang.Object resolveName(java.lang.String cookieName,
MethodParameter parameter,
NativeWebRequest webRequest)
throws java.lang.Exception
- Description copied from class:
AbstractNamedValueMethodArgumentResolver
- Resolves the given parameter type and value name into an argument value.
- Specified by:
resolveName
in class AbstractNamedValueMethodArgumentResolver
- Parameters:
cookieName
- the name of the value being resolvedparameter
- the method parameter to resolve to an argument valuewebRequest
- the current request
- Returns:
- the resolved argument. May be
null
- Throws:
java.lang.Exception
- in case of errors