Class DefaultUserAgentContextInfoCustomizer

java.lang.Object
com.broadleafcommerce.paymenttransaction.service.context.DefaultUserAgentContextInfoCustomizer
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer, org.springframework.core.Ordered

public class DefaultUserAgentContextInfoCustomizer extends Object implements com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer
Gathers the contents of the User-Agent request header & adds the value to the ContextInfo.getAdditionalProperties() map.
Author:
Chris Kittrell (ckittrell)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(@NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String routeKey, org.springframework.core.MethodParameter endpoint, org.springframework.web.context.request.NativeWebRequest webRequest)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer

    getOrder
  • Field Details

  • Constructor Details

    • DefaultUserAgentContextInfoCustomizer

      public DefaultUserAgentContextInfoCustomizer()
  • Method Details

    • customize

      public void customize(@NonNull @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @Nullable String routeKey, @Nullable org.springframework.core.MethodParameter endpoint, @Nullable org.springframework.web.context.request.NativeWebRequest webRequest)
      Specified by:
      customize in interface com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer