Class MatomoRequestIpAddressEnricher

java.lang.Object
org.dspace.matomo.factory.MatomoRequestIpAddressEnricher
All Implemented Interfaces:
MatomoRequestDetailsEnricher

public class MatomoRequestIpAddressEnricher extends Object implements MatomoRequestDetailsEnricher
Adds the IP address of the client to the MatomoRequestDetails.
Author:
Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
  • Constructor Details

  • Method Details

    • enrich

      public MatomoRequestDetails enrich(UsageEvent usageEvent, MatomoRequestDetails matomoRequestDetails)
      Description copied from interface: MatomoRequestDetailsEnricher
      Enriches the provided MatomoRequestDetails with additional parameters based on the UsageEvent.
      Specified by:
      enrich in interface MatomoRequestDetailsEnricher
      Parameters:
      usageEvent - The usage event containing information to enrich the request details
      matomoRequestDetails - The request details object to be enriched with additional parameters
      Returns:
      The enriched MatomoRequestDetails object