public class PostgresUrlParser extends Object
| Constructor and Description |
|---|
PostgresUrlParser() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getProtocolPrefix() |
String |
getUrl(String hostname,
String port,
String instance)
Returns the JDBC URL for this DB config.
|
DatabaseInstance |
parseUrl(String jdbcUrl) |
protected String |
removeProtocolPrefix(String jdbcUrl) |
public String getUrl(String hostname, String port, String instance) throws ParseException
JdbcUrlParserhostname - the hostnameport - the TCP/IP port numberinstance - the DB "instance"ParseExceptionpublic DatabaseInstance parseUrl(String jdbcUrl) throws ParseException
ParseExceptionprotected String getProtocolPrefix()
protected String removeProtocolPrefix(String jdbcUrl) throws ParseException
ParseExceptionCopyright © 2002-2020 Atlassian. All Rights Reserved.