public static String mangleURL ( String url ) throws SQLException { if ( url . startsWith ( POSTGIS_H2PROTOCOL ) ) { return POSTGIS_PROTOCOL + url . substring ( POSTGIS_H2PROTOCOL . length ( ) ) ; } else { throw new SQLException ( "Unknown protocol or subprotocol in url " + url ) ; } }
Mangles the PostGIS URL to return the original PostGreSQL URL .