Class WebApps.Builder<T>

java.lang.Object
org.apache.hadoop.yarn.webapp.WebApps.Builder<T>
Enclosing class:
WebApps

public static class WebApps.Builder<T> extends Object
  • Method Details

    • at

      public WebApps.Builder<T> at(String bindAddress)
    • at

      public WebApps.Builder<T> at(int port)
    • at

      public WebApps.Builder<T> at(String address, int port, boolean findPort)
    • withAttribute

      public WebApps.Builder<T> withAttribute(String key, Object value)
    • withServlet

      public WebApps.Builder<T> withServlet(String name, String pathSpec, Class<? extends javax.servlet.http.HttpServlet> servlet)
    • withServlet

      public WebApps.Builder<T> withServlet(String name, String pathSpec, Class<? extends javax.servlet.http.HttpServlet> servlet, Map<String,String> params, boolean loadExistingFilters)
    • withResourceConfig

      public WebApps.Builder<T> withResourceConfig(org.glassfish.jersey.server.ResourceConfig resourceConfig)
    • with

      public WebApps.Builder<T> with(org.apache.hadoop.conf.Configuration conf)
    • withHttpPolicy

      public WebApps.Builder<T> withHttpPolicy(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.http.HttpConfig.Policy httpPolicy)
    • needsClientAuth

      public WebApps.Builder<T> needsClientAuth(boolean needsClientAuth)
    • withPortRange

      public WebApps.Builder<T> withPortRange(org.apache.hadoop.conf.Configuration configuration, String portRangeConfKey)
      Set port range config key and associated configuration object.
      Parameters:
      configuration - configuration.
      portRangeConfKey - port range config key.
      Returns:
      builder object.
    • withHttpSpnegoPrincipalKey

      public WebApps.Builder<T> withHttpSpnegoPrincipalKey(String spnegoPrincipalKey)
    • withHttpSpnegoKeytabKey

      public WebApps.Builder<T> withHttpSpnegoKeytabKey(String spnegoKeytabKey)
    • withCSRFProtection

      public WebApps.Builder<T> withCSRFProtection(String prefix)
      Enable the CSRF filter.
      Parameters:
      prefix - The config prefix that identifies the CSRF parameters applicable for this filter instance.
      Returns:
      the Builder instance
    • withXFSProtection

      public WebApps.Builder<T> withXFSProtection(String prefix)
      Enable the XFS filter.
      Parameters:
      prefix - The config prefix that identifies the XFS parameters applicable for this filter instance.
      Returns:
      the Builder instance
    • inDevMode

      public WebApps.Builder<T> inDevMode()
    • withAppClientProtocol

      public WebApps.Builder<T> withAppClientProtocol(org.apache.hadoop.yarn.api.ApplicationClientProtocol appClientProto)
    • build

      public WebApp build(WebApp webapp)
    • start

      public WebApp start()
    • start

      public WebApp start(WebApp webapp)
    • start

      public WebApp start(WebApp webapp, org.eclipse.jetty.webapp.WebAppContext... additionalContexts)