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 Details

  • 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 interface org.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 interface org.springframework.web.method.support.HandlerMethodArgumentResolver
    • getDefaultOperationType

      @NonNull protected OperationType getDefaultOperationType()
    • getReference

      @Nullable protected com.broadleafcommerce.common.extension.data.DataRouteReference getReference()
    • getContextInfoWebRequestResolver

      protected ContextInfoWebRequestResolver getContextInfoWebRequestResolver()