Class InitialOriginValuesProvider

    • Method Detail

      • adjustAndAddToContext

        public static void adjustAndAddToContext​(HttpServletRequest request,
                                                 String currentURL,
                                                 String originURL,
                                                 String utmSource,
                                                 String utmMedium,
                                                 String utmTerm,
                                                 String utmContent,
                                                 String utmName,
                                                 String gclid)
                                          throws URISyntaxException
        Adjust the HTTP session value, if needed, and attach to monitor context.
        Parameters:
        request - the request.
        currentURL - the currently accessed URL
        originURL - the origin URL
        utmSource - the UTM source
        utmMedium - the UTM medium
        utmTerm - the UTM term
        utmContent - the UTM content
        utmName - the UTM name
        gclid - the gclid parameter
        Throws:
        URISyntaxException - throw if the provided originUrl is invalid.
        Since:
        14.0.0
      • initValues

        protected Map<String,​List<? extends Serializable>> initValues​(SessionConfig sessionConfig,
                                                                            ITransaction transaction)
                                                                     throws Exception
        Description copied from class: AbstractMonitorValuesProvider
        Initializes the monitoring values map. This method will only be called once and the results will be cached. The implementations must not return null. If no value is present, an empty map should be returned instead. Also, any null value in a list will be ignored, meaning that a list with only null will be considered a empty list.
        Overrides:
        initValues in class OriginValueProvider
        Parameters:
        sessionConfig - the session config.
        transaction - the transaction.
        Returns:
        the monitoring data map.
        Throws:
        Exception