HttpWaitStrategy
@Deprecated public class HttpWaitStrategy extends GenericContainer.AbstractWaitStrategy
container, startupTimeout
waitStrategyTarget
Constructor and Description |
---|
HttpWaitStrategy()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
HttpWaitStrategy |
forPath(java.lang.String path)
Deprecated.
Waits for the given path.
|
HttpWaitStrategy |
forResponsePredicate(java.util.function.Predicate<java.lang.String> responsePredicate)
Deprecated.
Waits for the response to pass the given predicate
|
HttpWaitStrategy |
forStatusCode(int statusCode)
Deprecated.
Waits for the given status code.
|
HttpWaitStrategy |
usingTls()
Deprecated.
Indicates that the status check should use HTTPS.
|
protected void |
waitUntilReady()
Deprecated.
Wait until
GenericContainer.AbstractWaitStrategy.container has started. |
HttpWaitStrategy |
withBasicCredentials(java.lang.String username,
java.lang.String password)
Deprecated.
Authenticate with HTTP Basic Authorization credentials.
|
getLivenessCheckPort, getLivenessCheckPorts, getRateLimiter, logger, waitUntilReady, withStartupTimeout
waitUntilReady, withRateLimiter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
waitUntilReady
public HttpWaitStrategy forStatusCode(int statusCode)
statusCode
- the expected status codepublic HttpWaitStrategy forPath(java.lang.String path)
path
- the path to checkpublic HttpWaitStrategy usingTls()
public HttpWaitStrategy withBasicCredentials(java.lang.String username, java.lang.String password)
username
- the usernamepassword
- the passwordpublic HttpWaitStrategy forResponsePredicate(java.util.function.Predicate<java.lang.String> responsePredicate)
responsePredicate
- The predicate to test the response againstprotected void waitUntilReady()
GenericContainer.AbstractWaitStrategy
GenericContainer.AbstractWaitStrategy.container
has started.waitUntilReady
in class GenericContainer.AbstractWaitStrategy