public class HttpCondition extends AbstractCondition
Constructor and Description |
---|
HttpCondition()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage(TestContext context)
Construct proper error message for this condition.
|
String |
getHttpResponseCode() |
String |
getMethod() |
String |
getSuccessMessage(TestContext context)
Construct proper success message for this condition.
|
String |
getTimeout() |
String |
getUrl() |
boolean |
isSatisfied(TestContext context)
Tests the condition returning true if it is satisfied.
|
protected HttpURLConnection |
openConnection(URL url)
Open Http url connection.
|
void |
setHttpResponseCode(String httpResponseCode) |
void |
setMethod(String method) |
void |
setTimeout(String timeout) |
void |
setUrl(String url) |
getName
public boolean isSatisfied(TestContext context)
Condition
context
- the citrus test contextpublic String getSuccessMessage(TestContext context)
Condition
context
- the citrus test contextpublic String getErrorMessage(TestContext context)
Condition
context
- the citrus test contextprotected HttpURLConnection openConnection(URL url) throws IOException
url
- IOException
public String getUrl()
public void setUrl(String url)
public String getMethod()
public void setMethod(String method)
public String getTimeout()
public void setTimeout(String timeout)
public String getHttpResponseCode()
public void setHttpResponseCode(String httpResponseCode)
Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.