code: public static boolean isAvailable(String destinationUrl, boolean fireRequest, boolean ignoreHTTPSHostCheck,
                                        int timeout) throws IllegalArgumentException {
          return getAccessError(destinationUrl, fireRequest, ignoreHTTPSHostCheck, timeout, null) == null;
      }
docs: Check if the HTTP resource specified by the destination URL is available.
  
  @param destinationUrl the destination URL to check for availability
  @param fireRequest if true a request will be sent to the given URL in addition to opening the
  connection
  @param ignoreHTTPSHostCheck if specified true, a HostnameVerifier is registered which accepts all host-names
  during SSL handshake
  @param timeout Timeout in milliseconds after which the call fails because of timeout.
  @return <code>true</code> if a connection could be set up and the response was received
  @throws IllegalArgumentException if the destination URL is invalid