Package org.apache.hadoop.yarn.webapp
Class WebApps.Builder<T>
java.lang.Object
org.apache.hadoop.yarn.webapp.WebApps.Builder<T>
- Enclosing class:
- WebApps
-
Method Summary
Modifier and TypeMethodDescriptionat(int port) needsClientAuth(boolean needsClientAuth) start()with(org.apache.hadoop.conf.Configuration conf) withAppClientProtocol(org.apache.hadoop.yarn.api.ApplicationClientProtocol appClientProto) withAttribute(String key, Object value) withCSRFProtection(String prefix) Enable the CSRF filter.withHttpPolicy(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.http.HttpConfig.Policy httpPolicy) withHttpSpnegoKeytabKey(String spnegoKeytabKey) withHttpSpnegoPrincipalKey(String spnegoPrincipalKey) withPortRange(org.apache.hadoop.conf.Configuration configuration, String portRangeConfKey) Set port range config key and associated configuration object.withResourceConfig(org.glassfish.jersey.server.ResourceConfig resourceConfig) withServlet(String name, String pathSpec, Class<? extends javax.servlet.http.HttpServlet> servlet) withServlet(String name, String pathSpec, Class<? extends javax.servlet.http.HttpServlet> servlet, Map<String, String> params, boolean loadExistingFilters) withXFSProtection(String prefix) Enable the XFS filter.
-
Method Details
-
at
-
at
-
at
-
withAttribute
-
withServlet
public WebApps.Builder<T> withServlet(String name, String pathSpec, Class<? extends javax.servlet.http.HttpServlet> servlet) -
withServlet
-
withResourceConfig
public WebApps.Builder<T> withResourceConfig(org.glassfish.jersey.server.ResourceConfig resourceConfig) -
with
-
withHttpPolicy
public WebApps.Builder<T> withHttpPolicy(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.http.HttpConfig.Policy httpPolicy) -
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
-
withHttpSpnegoKeytabKey
-
withCSRFProtection
Enable the CSRF filter.- Parameters:
prefix- The config prefix that identifies the CSRF parameters applicable for this filter instance.- Returns:
- the Builder instance
-
withXFSProtection
Enable the XFS filter.- Parameters:
prefix- The config prefix that identifies the XFS parameters applicable for this filter instance.- Returns:
- the Builder instance
-
inDevMode
-
withAppClientProtocol
public WebApps.Builder<T> withAppClientProtocol(org.apache.hadoop.yarn.api.ApplicationClientProtocol appClientProto) -
build
-
start
-
start
-
start
-