Class HttpPingChecker

  • All Implemented Interfaces:
    WaitChecker

    public class HttpPingChecker
    extends Object
    implements WaitChecker
    Check whether a given URL is available
    • Constructor Detail

      • HttpPingChecker

        public HttpPingChecker​(String url,
                               String method,
                               String status)
        Ping the given URL
        Parameters:
        url - URL to check
        method - HTTP method to use
        status - status code to check
      • HttpPingChecker

        public HttpPingChecker​(String waitUrl)
      • HttpPingChecker

        public HttpPingChecker​(String url,
                               String method,
                               String status,
                               boolean allowAllHosts)
    • Method Detail

      • check

        public boolean check()
        Specified by:
        check in interface WaitChecker
        Returns:
        true if the the check has succeed, false otherwise
      • cleanUp

        public void cleanUp()
        Description copied from interface: WaitChecker
        Cleanup hook which is called after the wait phase.
        Specified by:
        cleanUp in interface WaitChecker