Package org.apache.storm.daemon.ui
Class TestingFilter
- java.lang.Object
-
- org.apache.storm.daemon.ui.TestingFilter
-
- All Implemented Interfaces:
jakarta.servlet.Filter
public class TestingFilter extends Object implements jakarta.servlet.Filter
A simple UI filter that should only be used for testing purposes. To set a given user name, set an init parameter of USER_NAME to be the name of the user you want the UI to always impersonate.
-
-
Constructor Summary
Constructors Constructor Description TestingFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse, jakarta.servlet.FilterChain filterChain)
void
init(jakarta.servlet.FilterConfig filterConfig)
-
-
-
Method Detail
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException
- Specified by:
init
in interfacejakarta.servlet.Filter
- Throws:
jakarta.servlet.ServletException
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse, jakarta.servlet.FilterChain filterChain) throws IOException, jakarta.servlet.ServletException
- Specified by:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejakarta.servlet.Filter
-
-