Package com.intershop.gradle.icm.utils
Class HttpProbe
-
- All Implemented Interfaces:
-
com.intershop.gradle.icm.utils.Probe
public final class HttpProbe extends AbstractProbe
Probes an HTTP endpoint until it answers with an accepted status code.
Takes the Logger and the ProgressLoggerFactory of the owning task instead of its
Project, so that executing this probe never touches the build model - see AbstractProbe.
-
-
Field Summary
Fields Modifier and Type Field Description private final HttpRequestrequestprivate DurationretryIntervalprivate DurationretryTimeout
-
Method Summary
Modifier and Type Method Description final HttpRequestgetRequest()final HttpProberequireHttpStatus(Function1<Integer, Boolean> statusCheck)StringtoString()-
Methods inherited from class com.intershop.gradle.icm.utils.AbstractProbe
execute, getRetryInterval, getRetryTimeout, onFailure, onSuccess, setRetryInterval, setRetryTimeout, withRetryInterval, withRetryTimeout -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getRequest
final HttpRequest getRequest()
-
requireHttpStatus
final HttpProbe requireHttpStatus(Function1<Integer, Boolean> statusCheck)
-
-
-
-