Class HostRestrictingAuthorizationFilter

java.lang.Object
org.apache.hadoop.hdfs.server.common.HostRestrictingAuthorizationFilter
All Implemented Interfaces:
javax.servlet.Filter

public class HostRestrictingAuthorizationFilter extends Object implements javax.servlet.Filter
An HTTP filter that can filter requests based on Hosts.
  • Field Details

  • Constructor Details

    • HostRestrictingAuthorizationFilter

      public HostRestrictingAuthorizationFilter()
  • Method Details

    • getFilterParams

      public static Map<String,String> getFilterParams(org.apache.hadoop.conf.Configuration conf, String confPrefix)
    • destroy

      public void destroy()
      Specified by:
      destroy in interface javax.servlet.Filter
    • init

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

      public void handleInteraction(HostRestrictingAuthorizationFilter.HttpInteraction interaction) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException