/** * Checks the existence of the webkit library on ubuntu 16 or ubuntu 14 . * * @return 'true' if the webkit library is not present in ubuntu 16 or ubuntu 14 , 'false' otherwise. */ public synchronized boolean isWebkitUnavailable() { String path = getWebkitPath(); String osName = getEnvironmentName(); return ( ( path == null || path.length() < 1 || !path.contains( "webkit" ) ) && ( osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "max.ubuntu.os.distribution.supported" ) ) || osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "min.ubuntu.os.distribution.supported" ) ) ) ); }
/** * Checks the available browser to see if it is an unsupported one. * * @return 'true' if in a unSupported browser environment 'false' otherwise. */ public synchronized boolean isUnsupportedBrowserEnvironment() { if ( getEnvironmentName().contains( "linux" ) ) { return false; } final String userAgent = getUserAgent(); if ( userAgent == null ) { return true; } return checkUserAgent( MSIE_PATTERN.matcher( userAgent ), getSupportedVersion( "min.windows.browser.supported" ) ) || checkUserAgent( SAFARI_PATTERN.matcher( userAgent ), getSupportedVersion( "min.mac.browser.supported" ) ); }