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 org.mortbay.jetty.Connector |
connector |
private ArrayList<URI> |
endpoints |
private boolean |
findPort |
private String |
hostName |
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 |
trustStore |
private String |
trustStorePassword |
private String |
trustStoreType |
private String |
usernameConfKey |
Constructor and Description |
---|
HttpServer.Builder() |
Modifier and Type | Method and Description |
---|---|
HttpServer.Builder |
addEndpoint(URI endpoint)
Add an endpoint that the HTTP server should listen to.
|
HttpServer |
build() |
HttpServer.Builder |
hostName(String hostName)
Set the hostname of the http server.
|
HttpServer.Builder |
keyPassword(String password) |
HttpServer.Builder |
keyStore(String location,
String password,
String type) |
HttpServer.Builder |
needsClientAuth(boolean value)
Specify whether the server should authorize the client in SSL
connections.
|
HttpServer.Builder |
setACL(org.apache.hadoop.security.authorize.AccessControlList acl) |
HttpServer.Builder |
setAppDir(String appDir) |
HttpServer.Builder |
setBindAddress(String bindAddress)
Deprecated.
|
HttpServer.Builder |
setConf(org.apache.hadoop.conf.Configuration conf) |
HttpServer.Builder |
setConnector(org.mortbay.jetty.Connector connector) |
HttpServer.Builder |
setFindPort(boolean findPort) |
HttpServer.Builder |
setKeytabConfKey(String keytabConfKey) |
HttpServer.Builder |
setLogDir(String logDir) |
HttpServer.Builder |
setName(String name)
Deprecated.
|
HttpServer.Builder |
setPathSpec(String[] pathSpec) |
HttpServer.Builder |
setPort(int port)
Deprecated.
|
HttpServer.Builder |
setSecurityEnabled(boolean securityEnabled) |
HttpServer.Builder |
setUsernameConfKey(String usernameConfKey) |
HttpServer.Builder |
trustStore(String location,
String password,
String type) |
private org.mortbay.jetty.Connector connector
private org.apache.hadoop.conf.Configuration conf
private String[] pathSpecs
private org.apache.hadoop.security.authorize.AccessControlList adminsAcl
private boolean securityEnabled
private String usernameConfKey
private String keytabConfKey
private boolean needsClientAuth
private String hostName
private String appDir
private String logDir
private boolean findPort
private String trustStore
private String trustStorePassword
private String trustStoreType
private String keyStore
private String keyStorePassword
private String keyStoreType
private String keyPassword
@Deprecated private String name
@Deprecated private String bindAddress
@Deprecated private int port
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 setConnector(org.mortbay.jetty.Connector connector)
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 setAppDir(String appDir)
public HttpServer.Builder setLogDir(String logDir)
public HttpServer build() throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.