Class ChatAuthenticationFilter

java.lang.Object
org.exoplatform.chat.filter.ChatAuthenticationFilter
All Implemented Interfaces:
jakarta.servlet.Filter

public class ChatAuthenticationFilter extends Object implements jakarta.servlet.Filter
Filter which handles the authentication token. If available in the header, it exposes it in the request parameters. It allows to pass the authentication token in the header instead of making it visible in the URL (more secure). It relies on Juzu internals which parses the query string to build its Request object and its parameters.
  • Constructor Details

    • ChatAuthenticationFilter

      public ChatAuthenticationFilter()
  • Method Details

    • init

      public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Filter
      Throws:
      jakarta.servlet.ServletException
    • 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 interface jakarta.servlet.Filter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Filter