com.atlassian.jira.config.database.jdbcurlparser
Class PostgresUrlParser
java.lang.Object
com.atlassian.jira.config.database.jdbcurlparser.PostgresUrlParser
- All Implemented Interfaces:
- JdbcUrlParser
public class PostgresUrlParser
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostgresUrlParser
public PostgresUrlParser()
getUrl
public String getUrl(String hostname,
String port,
String instance)
throws ParseException
- Description copied from interface:
JdbcUrlParser
- Returns the JDBC URL for this DB config.
- Parameters:
hostname
- the hostnameport
- the TCP/IP port numberinstance
- the DB "instance"
- Returns:
- the JDBC URL for this DB config.
- Throws:
ParseException
parseUrl
public DatabaseInstance parseUrl(String jdbcUrl)
throws ParseException
- Throws:
ParseException
getProtocolPrefix
protected String getProtocolPrefix()
removeProtocolPrefix
protected String removeProtocolPrefix(String jdbcUrl)
throws ParseException
- Throws:
ParseException
Copyright © 2002-2014 Atlassian. All Rights Reserved.