public class HttpCheckAvailabilityUtil extends Object
| Constructor and Description |
|---|
HttpCheckAvailabilityUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkUrlStatus(String urlToCkeck,
int maxAttemps,
int msTimeWait,
int httpStatusCode)
Check url status performing a HTTP GET.
|
public static boolean checkUrlStatus(String urlToCkeck, int maxAttemps, int msTimeWait, int httpStatusCode) throws Exception
urlToCkeck - the url to ckeckmaxAttemps - the max attemps. Max number of attemps it must be >= 1msTimeWait - the time offset. Time to wait in ms between two attempshttpStatusCode - the http status code. The http status code to check (i.e. HttpStatus.SC_OK)Exception - the exceptionCopyright © 2019. All Rights Reserved.