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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpProbe(Logger logger, ProgressLoggerFactory progressLoggerFactory, URI target, Duration requestTimeout)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final HttpRequest getRequest()
      final HttpProbe requireHttpStatus(Function1<Integer, Boolean> statusCheck)
      String toString()
      • 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