Package org.apache.hadoop.hbase.http
Class TestHttpServer.DummyServletFilter
java.lang.Object
org.apache.hadoop.hbase.http.TestHttpServer.DummyServletFilter
- All Implemented Interfaces:
javax.servlet.Filter
- Enclosing class:
- TestHttpServer
public static class TestHttpServer.DummyServletFilter
extends Object
implements javax.servlet.Filter
Dummy filter that mimics as an authentication filter. Obtains user identity from the request
parameter user.name. Wraps around the request so that request.getRemoteUser() returns the user
identity.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DummyServletFilter
public DummyServletFilter()
-
-
Method Details
-
destroy
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException - Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
init
- Specified by:
init
in interfacejavax.servlet.Filter
-