Class NewsletterReadDateFilter
java.lang.Object
ch.tocco.nice2.optional.newsletter.impl.stats.NewsletterReadDateFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
This filter requires an URL parameter called "receiver", which contains the UID
of a Newsletter_receiver entity. Then it fetches the matching entity
and if the field "read_date" is null the current date is filled in.
After the field is set, a blind gif is delivered (1x1 px, transparent).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNewsletterReadDateFilter
(NewsletterReceiverService newsletterReceiverService, SecurityManager securityManager, Context context, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doFilter
(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.servlet.Filter
destroy, init
-
Field Details
-
PRIORITY
public static final int PRIORITY- See Also:
-
-
Constructor Details
-
NewsletterReadDateFilter
@Lazy public NewsletterReadDateFilter(NewsletterReceiverService newsletterReceiverService, SecurityManager securityManager, Context context, org.slf4j.Logger log)
-
-
Method Details
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException - Specified by:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
-