public static class HttpServer.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.security.authorize.AccessControlList |
adminsAcl |
private String |
appDir |
private String |
bindAddress
Deprecated.
|
private org.apache.hadoop.conf.Configuration |
conf |
private ArrayList<URI> |
endpoints |
private boolean |
findPort |
private String |
hostName |
private String |
kerberosNameRulesKey |
private String |
keyPassword |
private String |
keyStore |
private String |
keyStorePassword |
private String |
keyStoreType |
private String |
keytabConfKey |
private String |
logDir |
private String |
name
Deprecated.
|
private boolean |
needsClientAuth |
private String[] |
pathSpecs |
private int |
port
Deprecated.
|
private boolean |
securityEnabled |
private String |
signatureSecretFileKey |
private String |
trustStore |
private String |
trustStorePassword |
private String |
trustStoreType |
private String |
usernameConfKey |
Constructor and Description |
---|
Builder() |
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.security.authorize.AccessControlList adminsAcl
private boolean securityEnabled
private String usernameConfKey
private String keytabConfKey
private boolean needsClientAuth
private boolean findPort
private String trustStore
private String trustStorePassword
private String trustStoreType
private String keyStorePassword
private String keyStoreType
private String keyPassword
private String kerberosNameRulesKey
private String signatureSecretFileKey
@Deprecated private String name
@Deprecated private String bindAddress
@Deprecated private int port
public Builder()
public HttpServer.Builder addEndpoint(URI endpoint)
endpoint
- the endpoint of that the HTTP server should listen to. The
scheme specifies the protocol (i.e. HTTP / HTTPS), the host
specifies the binding address, and the port specifies the
listening port. Unspecified or zero port means that the server
can listen to any port.public HttpServer.Builder hostName(String hostName)
public HttpServer.Builder trustStore(String location, String password, String type)
public HttpServer.Builder keyStore(String location, String password, String type)
public HttpServer.Builder keyPassword(String password)
public HttpServer.Builder needsClientAuth(boolean value)
@Deprecated public HttpServer.Builder setName(String name)
@Deprecated public HttpServer.Builder setBindAddress(String bindAddress)
@Deprecated public HttpServer.Builder setPort(int port)
public HttpServer.Builder setFindPort(boolean findPort)
public HttpServer.Builder setConf(org.apache.hadoop.conf.Configuration conf)
public HttpServer.Builder setPathSpec(String[] pathSpec)
public HttpServer.Builder setACL(org.apache.hadoop.security.authorize.AccessControlList acl)
public HttpServer.Builder setSecurityEnabled(boolean securityEnabled)
public HttpServer.Builder setUsernameConfKey(String usernameConfKey)
public HttpServer.Builder setKeytabConfKey(String keytabConfKey)
public HttpServer.Builder setKerberosNameRulesKey(String kerberosNameRulesKey)
public HttpServer.Builder setSignatureSecretFileKey(String signatureSecretFileKey)
public HttpServer.Builder setAppDir(String appDir)
public HttpServer.Builder setLogDir(String logDir)
public HttpServer build() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.