Class GeoLocationValuesProvider

  • All Implemented Interfaces:
    java.io.Serializable, IMonitorValuesProvider

    public class GeoLocationValuesProvider
    extends AbstractMonitorValuesProvider
    Geo location value provider based on the user's IP address.
    Since:
    12.3.0
    Version:
    $Revision: 23745 $ $Date: 2020-04-07 20:09:15 -0300 (Tue, 07 Apr 2020) $
    See Also:
    Serialized Form
    • Constructor Detail

      • GeoLocationValuesProvider

        public GeoLocationValuesProvider​(java.lang.String userIp)
    • Method Detail

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