| Constructor and Description |
|---|
UrlPinger() |
public boolean ping(String url, int timeout)
true if the response code is in
the 200-399 range.ping in interface Pingerurl - 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.Copyright © 2015. All Rights Reserved.