Package org.exoplatform.chat.filter
Class ChatAuthenticationFilter
java.lang.Object
org.exoplatform.chat.filter.ChatAuthenticationFilter
- All Implemented Interfaces:
javax.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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassHttpServletRequest wrapper which add the token in the parameters and the query string -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ChatAuthenticationFilter
public ChatAuthenticationFilter()
-
-
Method Details
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException - Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException - Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejavax.servlet.Filter
-