Class HttpServerUtil

java.lang.Object
org.apache.hadoop.hbase.http.HttpServerUtil

@Private public final class HttpServerUtil extends Object
HttpServer utility.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addClickjackingPreventionFilter(org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler ctxHandler, org.apache.hadoop.conf.Configuration conf, String pathSpec)
     
    static void
    addSecurityHeadersFilter(org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler ctxHandler, org.apache.hadoop.conf.Configuration conf, boolean isSecure, String pathSpec)
     
    static void
    constrainHttpMethods(org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler ctxHandler, boolean allowOptionsMethod)
    Add constraints to a Jetty Context to disallow undesirable Http methods.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • constrainHttpMethods

      public static void constrainHttpMethods(org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler ctxHandler, boolean allowOptionsMethod)
      Add constraints to a Jetty Context to disallow undesirable Http methods.
      Parameters:
      ctxHandler - The context to modify
      allowOptionsMethod - if true then OPTIONS method will not be set in constraint mapping
    • addClickjackingPreventionFilter

      public static void addClickjackingPreventionFilter(org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler ctxHandler, org.apache.hadoop.conf.Configuration conf, String pathSpec)
    • addSecurityHeadersFilter

      public static void addSecurityHeadersFilter(org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler ctxHandler, org.apache.hadoop.conf.Configuration conf, boolean isSecure, String pathSpec)