Class InitializeFilter

java.lang.Object
ch.tocco.nice2.web.core.impl.servlet.InitializeFilter
All Implemented Interfaces:
javax.servlet.Filter

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

    • InitializeFilter

      @Lazy public InitializeFilter(org.slf4j.Logger log, L10N l10N, SecureSettings secureSettings)
  • Method Details

    • doFilter

      public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
      Specified by:
      doFilter in interface javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException