question: protected boolean isValidServer ( final String server ) { boolean isValid = checkServerPrefixes ( server ) ; if ( isValid ) { if ( server . startsWith ( "http" ) ) { isValid = canConnect ( server ) ; } else if ( server . startsWith ( "file:" ) ) { isValid = isDirectory ( server ) ; } } return isValid ; }
target:  Returns whether the given server can be connected to.