public static class Connection.ConnectionBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
Connection |
build() |
Connection.ConnectionBuilder |
credentials(Credentials credentials) |
Connection.ConnectionBuilder |
host(String host) |
Connection.ConnectionBuilder |
port(int port) |
Connection.ConnectionBuilder |
timeout(int timeout) |
String |
toString() |
Connection.ConnectionBuilder |
useTLS(TLSConfig useTLS) |
public Connection.ConnectionBuilder host(String host)
host - the host to connect to.this.public Connection.ConnectionBuilder port(int port)
port - the port to use.this.public Connection.ConnectionBuilder timeout(int timeout)
timeout - the timeout for each request.this.public Connection.ConnectionBuilder credentials(Credentials credentials)
credentials - The Credentials to use for the connection.
This includes the 'Authentication' header and
possibly additional HTTP headers.this.public Connection.ConnectionBuilder useTLS(TLSConfig useTLS)
this.public Connection build()
Copyright © 2025. All rights reserved.