public static class HttpServer.Builder extends Object
Constructor and Description |
---|
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–2019 Cloudera. All rights reserved.