Class AllowHttpMethodsResourceFilter

java.lang.Object
org.apache.druid.server.security.AllowHttpMethodsResourceFilter
All Implemented Interfaces:
javax.servlet.Filter

public class AllowHttpMethodsResourceFilter extends Object implements javax.servlet.Filter
Filters requests based on the HTTP method. Any method that is not explicitly allowed by a Druid admin or one of the SUPPORTED_METHODS that Druid requires to operate, will be rejected.
  • Constructor Details

    • AllowHttpMethodsResourceFilter

      public AllowHttpMethodsResourceFilter(@Nonnull List<String> additionalSupportedMethods)
  • Method Details

    • init

      public void init(javax.servlet.FilterConfig filterConfig)
      Specified by:
      init in interface javax.servlet.Filter
    • doFilter

      public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
      Specified by:
      doFilter in interface javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException
    • destroy

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