com.atlassian.jira.config.database.jdbcurlparser
Class PostgresUrlParser

java.lang.Object
  extended by com.atlassian.jira.config.database.jdbcurlparser.PostgresUrlParser
All Implemented Interfaces:
JdbcUrlParser

public class PostgresUrlParser
extends Object


Constructor Summary
PostgresUrlParser()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgresUrlParser

public PostgresUrlParser()
Method Detail

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 hostname
port - the TCP/IP port number
instance - 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.