public class ConnectionString extends Object
ConnectionString
.Modifier and Type | Class and Description |
---|---|
static class |
ConnectionString.PortType |
static class |
ConnectionString.Scheme |
static class |
ConnectionString.UnresolvedSocket |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SCHEME |
Modifier | Constructor and Description |
---|---|
protected |
ConnectionString(String input) |
Modifier and Type | Method and Description |
---|---|
static ConnectionString |
create(String input) |
static ConnectionString |
fromHostnames(List<String> hostnames) |
List<ConnectionString.UnresolvedSocket> |
hosts()
Get the list of all hosts from the connection string.
|
boolean |
isValidDnsSrv()
Returns true if this connection string qualifies for DNS SRV resolving per spec.
|
String |
original()
Returns the unmodified, original connection string.
|
Map<String,String> |
params() |
ConnectionString.Scheme |
scheme() |
String |
toString() |
String |
username() |
public static final String DEFAULT_SCHEME
protected ConnectionString(String input)
public static ConnectionString create(String input)
public static ConnectionString fromHostnames(List<String> hostnames)
public ConnectionString.Scheme scheme()
public String username()
public List<ConnectionString.UnresolvedSocket> hosts()
public boolean isValidDnsSrv()
To be valid, the following criteria have to be met: only couchbase(s) schema, single host with no port specified and no IP address.
public String original()
Copyright © 2020 Couchbase, Inc.. All rights reserved.