@InterfaceAudience.Private public final class HttpServerUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
constrainHttpMethods(org.eclipse.jetty.servlet.ServletContextHandler ctxHandler,
boolean allowOptionsMethod)
Add constraints to a Jetty Context to disallow undesirable Http methods.
|
public static void constrainHttpMethods(org.eclipse.jetty.servlet.ServletContextHandler ctxHandler, boolean allowOptionsMethod)
ctxHandler
- The context to modifyallowOptionsMethod
- if true then OPTIONS method will not be set in constraint mappingCopyright © 2007–2019 Cloudera. All rights reserved.