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(Configuration conf)
public HttpServer.Builder setConnector(Connector connector)
public HttpServer.Builder setPathSpec(String[] pathSpec)
public HttpServer.Builder setACL(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