Package lumis.portal.monitor.impl
Class OriginValueProvider
- java.lang.Object
-
- lumis.portal.monitor.AbstractMonitorValuesProvider
-
- lumis.portal.monitor.impl.OriginValueProvider
-
- All Implemented Interfaces:
Serializable
,IMonitorValuesProvider
- Direct Known Subclasses:
ClientOriginValuesProvider
,InitialOriginValuesProvider
public abstract class OriginValueProvider extends AbstractMonitorValuesProvider
A value provider for init origin values based in a origin URL and a client URL.- Since:
- 12.4.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OriginValueProvider(String originUrl, String clientUrl, String utmSource, String utmMedium, String utmTerm, String utmContent, String utmName, String gclid)
This class' constructorOriginValueProvider(URI originURI, URI clientURI, String utmSource, String utmMedium, String utmTerm, String utmContent, String utmName, String gclid)
This class' constructor
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getMonitorFieldOriginName()
Returns the monitor field for the origin name.protected abstract String
getMonitorFieldOriginType()
Returns the monitor field for the origin type.protected abstract 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.protected static boolean
sameSite(URI clientUri, URI originUri)
Compare if the given URI's are from the same domain.-
Methods inherited from class lumis.portal.monitor.AbstractMonitorValuesProvider
getValues
-
-
-
-
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 sourceutmMedium
- the UTM mediumutmTerm
- the UTM termutmContent
- the UTM contentutmName
- the UTM namegclid
- 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 sourceutmMedium
- the UTM mediumutmTerm
- the UTM termutmContent
- the UTM contentutmName
- the UTM namegclid
- 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 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.- Specified by:
initValues
in classAbstractMonitorValuesProvider
- 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
-
-