Class InitialOriginValuesProvider

    • Method Detail

      • adjustAndAddToContext

        public static void adjustAndAddToContext​(javax.servlet.http.HttpServletRequest request,
                                                 java.lang.String currentURL,
                                                 java.lang.String originURL,
                                                 java.lang.String utmSource,
                                                 java.lang.String utmMedium,
                                                 java.lang.String utmTerm,
                                                 java.lang.String utmContent,
                                                 java.lang.String utmName,
                                                 java.lang.String gclid)
                                          throws java.net.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:
        java.net.URISyntaxException - throw if the provided originUrl is invalid.
        Since:
        14.0.0
      • initValues

        protected java.util.Map<java.lang.String,​java.util.List<? extends java.io.Serializable>> initValues​(SessionConfig sessionConfig,
                                                                                                                  ITransaction transaction)
                                                                                                           throws java.lang.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:
        java.lang.Exception