Responder defines a pattern of response to some input from a stream.
A Responder defines up to four different regular expressions:
- input success pattern: pattern to look for before responding that indicates response should proceed
- input failure pattern: pattern to look for before responding that indicates failure
- response success
pattern: pattern to look for after responding that indicates success
- response failure pattern: pattern to
look for after responding that indicates failure
It also defines some other heuristics:
- inputMaxLines: maximum number of input lines to use to match for input pattern. If exceeded, then "input
threshhold" breached.
- inputMaxTimeout: maximum time to wait while detecting new input. If exceeded, then
"input threshhold" breached.
- failOnInputThreshold: if true, fail if "input threshold" breached, otherwise,
ignore it.
- responseMaxLines: maximum number of input lines to use to match for response pattern. If
exceeded, then "response threshhold" breached.
- responseMaxTimeout: maximum time to wait while detecting
response pattern. If exceeded, then "response threshhold" breached.
- failOnResponseThreshold: if true, fail
if "response threshold" breached, otherwise, ignore it.