sanger-pathogens/Artemis — pull request #146 by erasche (2013-07-25 16:58:06+00:00)
Title: Addition of SSL Connection parameter for Chado/Postgres projects

I've done two things in this pull request:

1. I've refactored all database URI parsing code into a single class, `DatabaseLocationParser.java` (DLP)
2. I've added an SSL checkbox/parameter that gets passed along with the Connection strings

I did this because my organisation requires SSL for database connections due to our authentication choices; this merge request allows that.

I've refactored the code a bit, because URIs were parsed for username, hostname information in several places. This has now been modified to use DLP everywhere URIs are parsed for databases. I attempted to write DLP in such a way that it automatically handles URLs that users have in the old style (e.g., `genedb.org:5432/snapshot?genedb_ro` is handled properly)

Currently, `postgresql` is hardcoded as the engine in the code I'm submitting, but it seems to be that way elsewhere in the codebase as well.