Class NewsletterReadDateFilter

java.lang.Object
ch.tocco.nice2.optional.newsletter.impl.stats.NewsletterReadDateFilter
All Implemented Interfaces:
jakarta.servlet.Filter

@Component public class NewsletterReadDateFilter extends Object implements 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 Details

  • Constructor Details

  • Method Details

    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Throws:
      IOException