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 Details

  • Method Details

    • destroy

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

      public void init(javax.servlet.FilterConfig arg0)
      Specified by:
      init in interface javax.servlet.Filter