org.springframework.web.servlet.mvc.method.annotation

Class ServletCookieValueMethodArgumentResolver

    • Method Detail

      • setUrlPathHelper

        public void setUrlPathHelper(UrlPathHelper urlPathHelper)
      • resolveName

        @Nullable
        protected java.lang.Object resolveName(java.lang.String cookieName,
                                                         MethodParameter parameter,
                                                         NativeWebRequest webRequest)
                                                  throws java.lang.Exception
        Description copied from class: AbstractNamedValueMethodArgumentResolver
        Resolve 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 resolved
        parameter - the method parameter to resolve to an argument value (pre-nested in case of a Optional declaration)
        webRequest - the current request
        Returns:
        the resolved argument (may be null)
        Throws:
        java.lang.Exception - in case of errors