Class OriginValueProvider

    • Field Detail

      • utmSource

        protected final String utmSource
      • utmMedium

        protected final String utmMedium
      • utmTerm

        protected final String utmTerm
      • utmContent

        protected final String utmContent
      • utmName

        protected final String utmName
      • gclid

        protected final String gclid
    • Constructor Detail

      • OriginValueProvider

        public OriginValueProvider​(String originUrl,
                                   String clientUrl,
                                   String utmSource,
                                   String utmMedium,
                                   String utmTerm,
                                   String utmContent,
                                   String utmName,
                                   String gclid)
                            throws URISyntaxException
        This class' constructor
        Parameters:
        originUrl -
        clientUrl -
        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
        Since:
        14.0.0
      • OriginValueProvider

        public OriginValueProvider​(URI originURI,
                                   URI clientURI,
                                   String utmSource,
                                   String utmMedium,
                                   String utmTerm,
                                   String utmContent,
                                   String utmName,
                                   String gclid)
        This class' constructor
        Parameters:
        originURI -
        clientURI -
        utmSource - the UTM source
        utmMedium - the UTM medium
        utmTerm - the UTM term
        utmContent - the UTM content
        utmName - the UTM name
        gclid - the gclid parameter
        Since:
        14.0.0
    • Method Detail

      • 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.
        Specified by:
        initValues in class AbstractMonitorValuesProvider
        Parameters:
        sessionConfig - the session config.
        transaction - the transaction.
        Returns:
        the monitoring data map.
        Throws:
        Exception
      • getMonitorFieldOriginUrl

        protected abstract String getMonitorFieldOriginUrl()
        Returns the monitor field for the origin URL.
        Returns:
        the monitor field for the origin URL.
        Since:
        12.4.0
      • getMonitorFieldOriginName

        protected abstract String getMonitorFieldOriginName()
        Returns the monitor field for the origin name.
        Returns:
        the monitor field for the origin name.
        Since:
        12.4.0
      • getMonitorFieldOriginType

        protected abstract String getMonitorFieldOriginType()
        Returns the monitor field for the origin type.
        Returns:
        the monitor field for the origin type.
        Since:
        12.4.0
      • sameSite

        protected static boolean sameSite​(URI clientUri,
                                          URI originUri)
        Compare if the given URI's are from the same domain.
        Parameters:
        clientUri - the client URI.
        originUri - the origin URI.
        Returns:
        true if the URI's are from the same domain, false otherwise.
        Since:
        12.4.0