Class NewsletterReadDateFilter

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

@Component public class NewsletterReadDateFilter extends Object implements javax.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(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException
      Specified by:
      doFilter in interface javax.servlet.Filter
      Throws:
      IOException