public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
public static boolean pingURL(String url, int timeout)
true if the response code is in
the 200-399 range.url - The HTTP URL to be pinged.timeout - The timeout in millis for both the connection timeout and the response read timeout. Note that
the total timeout is effectively two times the given timeout.true if the given HTTP URL has returned response code 200-399 on a HEAD request within the
given timeout, otherwise false.public static final String getUniqueString()
Copyright © 2016. All Rights Reserved.