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 inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
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
-
USER_AGENT
- See Also:
-
-
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 interfacecom.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer
-