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:
java.io.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, 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)
Adjust the HTTP session value, if needed, and attach to monitor context.protected java.lang.String
getMonitorFieldOriginName()
Returns the monitor field for the origin name.protected java.lang.String
getMonitorFieldOriginType()
Returns the monitor field for the origin type.protected java.lang.String
getMonitorFieldOriginUrl()
Returns the monitor field for the origin URL.protected java.util.Map<java.lang.String,java.util.List<? extends java.io.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, 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 URLoriginURL
- the origin URLutmSource
- the UTM sourceutmMedium
- the UTM mediumutmTerm
- the UTM termutmContent
- the UTM contentutmName
- the UTM namegclid
- the gclid parameter- Throws:
java.net.URISyntaxException
- throw if the provided originUrl is invalid.- Since:
- 14.0.0
-
getMonitorFieldOriginUrl
protected java.lang.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 java.lang.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 java.lang.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 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 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:
java.lang.Exception
-
-