public class ConnectionString extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
host |
protected Map<String,String> |
params |
protected String |
path |
protected int |
port |
protected String |
protocol |
| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionString() |
|
ConnectionString(String connectionString) |
|
ConnectionString(String connectionString,
boolean expand) |
| Modifier and Type | Method and Description |
|---|---|
static String |
expand(String url) |
static String |
getAddressFromProperty(String interfaceName) |
boolean |
getBooleanParam(String key,
boolean defaultValue) |
String |
getHost() |
static String |
getInterfaceAddress(String interfaceName) |
int |
getIntParam(String key,
int defaultValue) |
long |
getLongParam(String key,
long defaultValue) |
Map<String,String> |
getParams() |
String |
getPath() |
int |
getPort() |
String |
getProtocol() |
static String |
getRoutingAddress(String targetIP) |
String |
getStringParam(String key) |
String |
getStringParam(String key,
String defaultValue) |
static Map<String,String> |
parseParameters(String parameters) |
String |
toString() |
protected String protocol
protected String host
protected int port
protected String path
protected ConnectionString()
public ConnectionString(String connectionString)
public ConnectionString(String connectionString, boolean expand)
public String getProtocol()
public String getHost()
public int getPort()
public String getPath()
public int getIntParam(String key, int defaultValue)
public long getLongParam(String key, long defaultValue)
public boolean getBooleanParam(String key, boolean defaultValue)
Copyright © 2019. All rights reserved.