Package org.apache.hadoop.hbase.http
Class HttpServerUtil
java.lang.Object
org.apache.hadoop.hbase.http.HttpServerUtil
HttpServer utility.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Field Details
-
PATH_SPEC_ANY
- See Also:
-
-
Constructor Details
-
HttpServerUtil
private HttpServerUtil()
-
-
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 modifyallowOptionsMethod
- 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)
-