Class ContentCondition
- java.lang.Object
-
- org.eclipse.steady.backend.requests.ContentCondition
-
- All Implemented Interfaces:
Serializable,ResponseCondition
public class ContentCondition extends Object implements ResponseCondition
ContentCondition class.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContentCondition.Mode
-
Constructor Summary
Constructors Constructor Description ContentCondition(String _regex, ContentCondition.Mode _mode, String _value)Constructor for ContentCondition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmeetsCondition(HttpResponse _response)Returns true of theHttpResponsemeets the condition, false otherwise.StringtoString()toString.
-
-
-
Constructor Detail
-
ContentCondition
public ContentCondition(String _regex, ContentCondition.Mode _mode, String _value)
Constructor for ContentCondition.
- Parameters:
_regex- aStringobject._mode- aContentCondition.Modeobject._value- aStringobject.
-
-
Method Detail
-
meetsCondition
public boolean meetsCondition(HttpResponse _response)
Returns true of theHttpResponsemeets the condition, false otherwise. Returns true if the content of the givenHttpResponsematches the regular expression of the condition, false otherwise.- Specified by:
meetsConditionin interfaceResponseCondition- Parameters:
_response- aHttpResponseobject.- Returns:
- a boolean.
-
-