Package org.apache.hadoop.hbase.http
Class HttpServerUtil
java.lang.Object
org.apache.hadoop.hbase.http.HttpServerUtil
HttpServer utility.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
-