@InterfaceAudience.Private public final class HttpServerUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_SPEC_ANY |
| Modifier and Type | Method and 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.
|
public static final String PATH_SPEC_ANY
public static void constrainHttpMethods(org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler ctxHandler,
boolean allowOptionsMethod)
ctxHandler - The context to modifyallowOptionsMethod - if true then OPTIONS method will not be set in constraint mappingpublic static void addClickjackingPreventionFilter(org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler ctxHandler,
org.apache.hadoop.conf.Configuration conf,
String pathSpec)
public static void addSecurityHeadersFilter(org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler ctxHandler,
org.apache.hadoop.conf.Configuration conf,
boolean isSecure,
String pathSpec)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.