Package lumis.portal.monitor.impl
Class InitialOriginValuesProvider
- java.lang.Object
-
- lumis.portal.monitor.AbstractMonitorValuesProvider
-
- lumis.portal.monitor.impl.OriginValueProvider
-
- lumis.portal.monitor.impl.InitialOriginValuesProvider
-
- All Implemented Interfaces:
Serializable
,IMonitorValuesProvider
public class InitialOriginValuesProvider extends OriginValueProvider
A values provider that fills lum_client.initialorigin.* values.- Since:
- 12.3.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class lumis.portal.monitor.impl.OriginValueProvider
gclid, utmContent, utmMedium, utmName, utmSource, utmTerm
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
adjustAndAddToContext(HttpServletRequest request, String currentURL, String originURL, String utmSource, String utmMedium, String utmTerm, String utmContent, String utmName, String gclid)
Adjust the HTTP session value, if needed, and attach to monitor context.protected String
getMonitorFieldOriginName()
Returns the monitor field for the origin name.protected String
getMonitorFieldOriginType()
Returns the monitor field for the origin type.protected String
getMonitorFieldOriginUrl()
Returns the monitor field for the origin URL.protected Map<String,List<? extends Serializable>>
initValues(SessionConfig sessionConfig, ITransaction transaction)
Initializes the monitoring values map.-
Methods inherited from class lumis.portal.monitor.impl.OriginValueProvider
sameSite
-
Methods inherited from class lumis.portal.monitor.AbstractMonitorValuesProvider
getValues
-
-
-
-
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 URLoriginURL
- the origin URLutmSource
- the UTM sourceutmMedium
- the UTM mediumutmTerm
- the UTM termutmContent
- the UTM contentutmName
- the UTM namegclid
- the gclid parameter- Throws:
URISyntaxException
- throw if the provided originUrl is invalid.- Since:
- 14.0.0
-
getMonitorFieldOriginUrl
protected String getMonitorFieldOriginUrl()
Description copied from class:OriginValueProvider
Returns the monitor field for the origin URL.- Specified by:
getMonitorFieldOriginUrl
in classOriginValueProvider
- Returns:
- the monitor field for the origin URL.
-
getMonitorFieldOriginName
protected String getMonitorFieldOriginName()
Description copied from class:OriginValueProvider
Returns the monitor field for the origin name.- Specified by:
getMonitorFieldOriginName
in classOriginValueProvider
- Returns:
- the monitor field for the origin name.
-
getMonitorFieldOriginType
protected String getMonitorFieldOriginType()
Description copied from class:OriginValueProvider
Returns the monitor field for the origin type.- Specified by:
getMonitorFieldOriginType
in classOriginValueProvider
- Returns:
- the monitor field for the origin type.
-
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 returnnull
. If no value is present, an empty map should be returned instead. Also, anynull
value in a list will be ignored, meaning that a list with onlynull
will be considered a empty list.- Overrides:
initValues
in classOriginValueProvider
- Parameters:
sessionConfig
- the session config.transaction
- the transaction.- Returns:
- the monitoring data map.
- Throws:
Exception
-
-