public class Dsn extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DSN
Default DSN to use when auto detection fails.
|
| Constructor and Description |
|---|
Dsn(String dsn)
Creates a DSN based on a String.
|
Dsn(URI dsn)
Creates a DSN based on a URI.
|
| 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 DEFAULT_DSN
public Dsn(String dsn) throws InvalidDsnException
dsn - DSN in a string form.InvalidDsnException - the given DSN is not valid.public Dsn(URI dsn) throws InvalidDsnException
dsn - DSN in URI form.InvalidDsnException - the given DSN is not valid.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–2018. All rights reserved.