Package org.dspace.matomo.factory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenrich(UsageEvent usageEvent, MatomoRequestDetails matomoRequestDetails) Enriches theMatomoRequestDetailswith custom cookies from theUsageEvent.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.matomo.factory.MatomoRequestDetailsEnricher
compose
-
Constructor Details
-
MatomoRequestCustomCookiesEnricher
-
-
Method Details
-
enrich
public MatomoRequestDetails enrich(UsageEvent usageEvent, MatomoRequestDetails matomoRequestDetails) Enriches theMatomoRequestDetailswith custom cookies from theUsageEvent.- Specified by:
enrichin interfaceMatomoRequestDetailsEnricher- Parameters:
usageEvent- TheUsageEventcontaining the request.matomoRequestDetails- TheMatomoRequestDetailsto be enriched.- Returns:
- The enriched
MatomoRequestDetails.
-