public static class HttpServer.Builder extends Object
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) |
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-2016 The Apache Software Foundation. All Rights Reserved.