Class NewsletterRedirectFilter
java.lang.Object
ch.tocco.nice2.optional.newsletter.impl.stats.NewsletterRedirectFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
This filter relates the link and receiver entity when
a link is clicked in the newsletter.
It requires an URL parameter called "link", which contains
the UID of a Newsletter_link entity and a second parameter called "receiver",
which contains the UID of a Newsletter_receiver entity
The user is redirected to the link location.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNewsletterRedirectFilter
(NewsletterReceiverService newsletterReceiverService, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory, ContentTreeService contentTreeService, 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
-
NewsletterRedirectFilter
@Lazy public NewsletterRedirectFilter(NewsletterReceiverService newsletterReceiverService, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory, ContentTreeService contentTreeService, 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, jakarta.servlet.ServletException - Specified by:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-