Class ContextInfoHandlerMethodArgumentResolver
java.lang.Object
com.broadleafcommerce.data.tracking.core.context.ContextInfoHandlerMethodArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class ContextInfoHandlerMethodArgumentResolver
extends Object
implements org.springframework.web.method.support.HandlerMethodArgumentResolver
Allows the use of
ContextInfo
within @RequestMapping
method parameters.
Delegates to ContextInfoWebRequestResolver
to parse information from the request itself.
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionContextInfoHandlerMethodArgumentResolver
(com.broadleafcommerce.common.extension.data.DataRouteReference reference, ContextInfoWebRequestResolver contextInfoWebRequestResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected ContextInfoWebRequestResolver
protected OperationType
protected com.broadleafcommerce.common.extension.data.DataRouteReference
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)
-
Field Details
-
CONTEXT_REQUEST_HEADER
- See Also:
-
IGNORE_TRANSLATION_HEADER
- See Also:
-
-
Constructor Details
-
ContextInfoHandlerMethodArgumentResolver
public ContextInfoHandlerMethodArgumentResolver(@Nullable com.broadleafcommerce.common.extension.data.DataRouteReference reference, ContextInfoWebRequestResolver contextInfoWebRequestResolver)
-
-
Method Details
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) - Specified by:
supportsParameter
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
-
resolveArgument
public Object resolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, @NonNull org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory) - Specified by:
resolveArgument
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
-
getDefaultOperationType
-
getReference
@Nullable protected com.broadleafcommerce.common.extension.data.DataRouteReference getReference() -
getContextInfoWebRequestResolver
-