public boolean isConnectionValid ( ) { //Init the session to get the salt... try { this . getJson ( false , WS . Path . Test . Version1 . testConnection ( ) ) ; } catch ( FluidClientException flowJobExcept ) { //Connect problem... if ( flowJobExcept . getErrorCode ( ) == FluidClientException . ErrorCode . CONNECT_ERROR ) { return false ; } throw flowJobExcept ; } return true ; }
Performs a HTTP Get against the connection test Web Service to confirm whether the connection is valid .