Class MatomoRequestCustomCookiesEnricher

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

public class MatomoRequestCustomCookiesEnricher extends Object implements MatomoRequestDetailsEnricher
This class extends the MatomoRequestDetailsEnricher interface and provides a concrete implementation to enrich the MatomoRequestDetails with custom cookies from the UsageEvent. <br/ The format of each cookie is: _pk_ref.1.1fff, so we need to extract the base name and check that is configured.
Author:
Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
  • Constructor Details

    • MatomoRequestCustomCookiesEnricher

      public MatomoRequestCustomCookiesEnricher(String customCookies)
  • Method Details

    • enrich

      public MatomoRequestDetails enrich(UsageEvent usageEvent, MatomoRequestDetails matomoRequestDetails)
      Enriches the MatomoRequestDetails with custom cookies from the UsageEvent.
      Specified by:
      enrich in interface MatomoRequestDetailsEnricher
      Parameters:
      usageEvent - The UsageEvent containing the request.
      matomoRequestDetails - The MatomoRequestDetails to be enriched.
      Returns:
      The enriched MatomoRequestDetails.