public class

PostgresUrlParser

extends Object
implements JdbcUrlParser
java.lang.Object
   ↳ com.atlassian.jira.config.database.jdbcurlparser.PostgresUrlParser

Summary

Public Constructors
PostgresUrlParser()
Public Methods
String getUrl(String hostname, String port, String instance)
Returns the JDBC URL for this DB config.
DatabaseInstance parseUrl(String jdbcUrl)
Protected Methods
String getProtocolPrefix()
String removeProtocolPrefix(String jdbcUrl)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.config.database.jdbcurlparser.JdbcUrlParser

Public Constructors

public PostgresUrlParser ()

Public Methods

public String getUrl (String hostname, String port, String instance)

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.

public DatabaseInstance parseUrl (String jdbcUrl)

Protected Methods

protected String getProtocolPrefix ()

protected String removeProtocolPrefix (String jdbcUrl)