public static ConnectionInfo parser ( String url ) { if ( null == url ) { return ConnectionInfo . UNKNOWN_CONNECTION_INFO ; } String lowerCaseUrl = url . toLowerCase ( ) ; ConnectionURLParser parser = findURLParser ( lowerCaseUrl ) ; if ( parser == null ) { return ConnectionInfo . UNKNOWN_CONNECTION_INFO ; } try { return parser . parse ( url ) ; } catch ( Exception e ) { log . log ( Level . WARNING , "error occurs when paring jdbc url" ) ; } return ConnectionInfo . UNKNOWN_CONNECTION_INFO ; }
parse the url to the ConnectionInfo