public class Dsn extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DSN_VARIABLE
Name of the environment and system variables containing the DSN.
|
| Constructor and Description |
|---|
Dsn()
Creates a DSN based on the
dsnLookup() result. |
Dsn(String dsn)
Creates a DSN based on a String.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
dsnLookup()
Looks for a DSN configuration within JNDI, the System environment or Java properties.
|
boolean |
equals(Object o) |
String |
getHost() |
Map<String,String> |
getOptions() |
String |
getPath() |
int |
getPort() |
String |
getProjectId() |
String |
getProtocol() |
Set<String> |
getProtocolSettings() |
String |
getPublicKey() |
String |
getSecretKey() |
URI |
getUri()
Creates the URI of the sentry server.
|
int |
hashCode() |
String |
toString() |
public static final String DSN_VARIABLE
public Dsn()
dsnLookup() result.public Dsn(String dsn) throws InvalidDsnException
dsn - dsn in a string form.InvalidDsnException - the given DSN isn't usable.public static String dsnLookup()
public String getSecretKey()
public String getPublicKey()
public String getProjectId()
public String getProtocol()
public String getHost()
public int getPort()
public String getPath()
public URI getUri()
Copyright © 2012–2014. All rights reserved.