public class HttpWaitStrategy extends GenericContainer.AbstractWaitStrategy
container, startupTimeout
Constructor and Description |
---|
HttpWaitStrategy() |
Modifier and Type | Method and Description |
---|---|
HttpWaitStrategy |
forPath(String path)
Waits for the given path.
|
HttpWaitStrategy |
forStatusCode(int statusCode)
Waits for the given status code.
|
HttpWaitStrategy |
usingTls()
Indicates that the status check should use HTTPS.
|
protected void |
waitUntilReady()
Wait until
GenericContainer.AbstractWaitStrategy.container has started. |
HttpWaitStrategy |
withBasicCredentials(String username,
String password)
Authenticate with HTTP Basic Authorization credentials.
|
getLivenessCheckPort, getRateLimiter, logger, waitUntilReady, withStartupTimeout
public HttpWaitStrategy forStatusCode(int statusCode)
statusCode
- the expected status codepublic HttpWaitStrategy forPath(String path)
path
- the path to checkpublic HttpWaitStrategy usingTls()
public HttpWaitStrategy withBasicCredentials(String username, String password)
username
- the usernamepassword
- the passwordprotected void waitUntilReady()
GenericContainer.AbstractWaitStrategy
GenericContainer.AbstractWaitStrategy.container
has started.waitUntilReady
in class GenericContainer.AbstractWaitStrategy
Copyright © 2017. All rights reserved.