Interface MatomoRequestDetailsEnricher

All Known Implementing Classes:
MatomoRequestCookieIdentifierEnricher, MatomoRequestCookieSessionEnricher, MatomoRequestCountryEnricher, MatomoRequestCustomCookiesEnricher, MatomoRequestCustomVariablesEnricher, MatomoRequestIpAddressEnricher, MatomoRequestTrackerIdentifierParamEnricher
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MatomoRequestDetailsEnricher
This class encapsulate a functional interface that will be used to enrich the MatomoRequestDetails with parameters.
Author:
Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
  • Method Details

    • enrich

      MatomoRequestDetails enrich(UsageEvent usageEvent, MatomoRequestDetails matomoRequestDetails)
      Enriches the provided MatomoRequestDetails with additional parameters based on the UsageEvent.
      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
    • compose

      Composes this enricher with another enricher to create a new enricher that applies both in sequence. The provided enricher is applied first, followed by this enricher.
      Parameters:
      enricher - The enricher to compose with this one
      Returns:
      A new enricher that applies both enrichers in sequence
    • empty

      Creates an empty enricher that returns the input MatomoRequestDetails unchanged.
      Returns:
      An enricher that performs no modifications to the input