user, password, ssl, and sslmode=require, which map to dedicated settings; empty if none
postgres://user:secret@host:5432/db?sslmode=require or jdbc:postgresql://host/db?user=me.
Surrounding text is ignored, so a whole psql 'postgres://…' command line can be pasted as well, and so can
libpq's keyword form (host=… port=… dbname=… user=… password=…).
| Modifier and Type | Field and Description |
|---|---|
| private final String | database
Record Component accessed by database(). |
| private final String | |
| private final Optional | password
Record Component accessed by password(). |
| private final int | |
| private final String | |
| private static final Set | |
| private final DBMSType | |
| private static final Pattern | |
| private final Optional | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| private static String | |
| private static String | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| private static DBMSConnectionUrl | |
| public final int | |
| public String | |
| public static Optional | |
| private static Optional | parseKeywords(String text)
libpq keyword form as shown by some providers: |
| private static Optional | |
| private static Optional | |
| public Optional | |
| public int | |
| public String | |
| private static int | |
| public String | toJdbcUrl()
The URL for the JDBC driver, keeping every parameter JabRef has no dedicated setting for. |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public DBMSType | |
| public Optional | |
| public boolean |
| database | back to summary |
|---|---|
| private final String database Record Component accessed by database(). | |
| host | back to summary |
|---|---|
| private final String host Record Component accessed by host(). | |
| password | back to summary |
|---|---|
| private final Optional<String> password Record Component accessed by password(). | |
| port | back to summary |
|---|---|
| private final int port Record Component accessed by port(). | |
| query | back to summary |
|---|---|
| private final String query Record Component accessed by query(). the query part without | |
| SSL_MODES_REQUIRING_SSL | back to summary |
|---|---|
| private static final Set<String> SSL_MODES_REQUIRING_SSL | |
| type | back to summary |
|---|---|
| private final DBMSType type Record Component accessed by type(). | |
| URL_IN_TEXT | back to summary |
|---|---|
| private static final Pattern URL_IN_TEXT | |
| user | back to summary |
|---|---|
| private final Optional<String> user Record Component accessed by user(). | |
| useSSL | back to summary |
|---|---|
| private final boolean useSSL Record Component accessed by useSSL(). | |
| DBMSConnectionUrl | back to summary |
|---|---|
| public DBMSConnectionUrl(DBMSType type, String host, int port, String database, Optional<String> user, Optional<String> password, boolean useSSL, String query) | |
| database | back to summary |
|---|---|
| public String database() Record Component getter of database. | |
| decode | back to summary |
|---|---|
| private static String decode(String raw) | |
| encode | back to summary |
|---|---|
| private static String encode(String value) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| fromParts | back to summary |
|---|---|
| private static DBMSConnectionUrl fromParts(String host, Optional<Integer> port, String database, List<Map. | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| host | back to summary |
|---|---|
| public String host() Record Component getter of host. | |
| parse | back to summary |
|---|---|
| public static Optional | |
| parseKeywords | back to summary |
|---|---|
| private static Optional libpq keyword form as shown by some providers: | |
| parsePort | back to summary |
|---|---|
| private static Optional | |
| parseUrl | back to summary |
|---|---|
| private static Optional | |
| password | back to summary |
|---|---|
| public Optional Record Component getter of password. | |
| port | back to summary |
|---|---|
| public int port() Record Component getter of port. | |
| query | back to summary |
|---|---|
| public String query() Record Component getter of query.
| |
| skipWhitespace | back to summary |
|---|---|
| private static int skipWhitespace(String text, int position) | |
| toJdbcUrl | back to summary |
|---|---|
| public String toJdbcUrl() The URL for the JDBC driver, keeping every parameter JabRef has no dedicated setting for. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| type | back to summary |
|---|---|
| public DBMSType type() Record Component getter of type. | |
| user | back to summary |
|---|---|
| public Optional Record Component getter of user. | |
| useSSL | back to summary |
|---|---|
| public boolean useSSL() Record Component getter of useSSL. | |