Class InitializeFilter
java.lang.Object
ch.tocco.nice2.web.core.impl.servlet.InitializeFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
This filter adds the response header for every request and specifies some global
error handling. This should be the very first filter in the chain. Subsequent filters
and servlets may throw a
SendErrorException
and this filter will send the
appropriate message to the client.-
Constructor Summary
ConstructorDescriptionInitializeFilter
(org.slf4j.Logger log, L10N l10N, SecureSettings secureSettings) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doFilter
(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp, 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
-
Constructor Details
-
InitializeFilter
-
-
Method Details
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-