Class GuestTokenHandlerMethodArgumentResolver
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.resolver.GuestTokenHandlerMethodArgumentResolver
-
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class GuestTokenHandlerMethodArgumentResolver extends Object implements org.springframework.web.method.support.HandlerMethodArgumentResolver
Used for resolvingResolveGuestToken
-annotated arguments for endpoints.- Author:
- Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description GuestTokenHandlerMethodArgumentResolver(RequestGuestTokenResolver tokenResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RequestGuestTokenResolver
getTokenResolver()
Object
resolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory)
boolean
supportsParameter(org.springframework.core.MethodParameter parameter)
-
-
-
Constructor Detail
-
GuestTokenHandlerMethodArgumentResolver
public GuestTokenHandlerMethodArgumentResolver(RequestGuestTokenResolver tokenResolver)
-
-
Method Detail
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
- Specified by:
supportsParameter
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
-
resolveArgument
@Nullable public Object resolveArgument(org.springframework.core.MethodParameter parameter, @Nullable org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, @Nullable org.springframework.web.bind.support.WebDataBinderFactory binderFactory) throws Exception
- Specified by:
resolveArgument
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
- Throws:
Exception
-
getTokenResolver
protected RequestGuestTokenResolver getTokenResolver()
-
-