Package org.exoplatform.chat.filter
Class ChatAuthenticationFilter
- java.lang.Object
-
- org.exoplatform.chat.filter.ChatAuthenticationFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class ChatAuthenticationFilter extends Object implements 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 Classes Modifier and Type Class Description classChatAuthenticationFilter.ChatHttpServletRequestWrapperHttpServletRequest wrapper which add the token in the parameters and the query string
-
Constructor Summary
Constructors Constructor Description ChatAuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain)voidinit(javax.servlet.FilterConfig filterConfig)
-
-
-
Method Detail
-
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
-
-