|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Responder
Responder defines a pattern of response to some input from a stream.
A Responder defines up to four different regular expressions:
Method Summary | |
---|---|
java.lang.String |
getInputFailurePattern()
Return a regex to detect input prompt failure |
int |
getInputMaxLines()
Return threshold max lines to read detecting input pattern |
long |
getInputMaxTimeout()
Return threshold max timeout detecting input pattern |
java.lang.String |
getInputString()
Return input string to send after successful input pattern (including any newline characters as necessary) |
java.lang.String |
getInputSuccessPattern()
Return a regex to detect input prompt |
java.lang.String |
getResponseFailurePattern()
Return a regex to detect response to input was failure |
int |
getResponseMaxLines()
Return threshold max lines to read detecting response pattern |
long |
getResponseMaxTimeout()
Return threshold max timeout detecting response pattern |
java.lang.String |
getResponseSuccessPattern()
Return a regex to detect response to input was successful |
boolean |
isFailOnInputLinesThreshold()
Return true if input max lines threshold indicates failure |
boolean |
isFailOnInputTimeoutThreshold()
Return true if input max timeout threshold indicates failure |
boolean |
isFailOnResponseThreshold()
Return true if response threshold indicates failure |
boolean |
isSuccessOnInputThreshold()
Return true if input threshold indicates success |
Method Detail |
---|
java.lang.String getInputSuccessPattern()
java.lang.String getInputFailurePattern()
int getInputMaxLines()
long getInputMaxTimeout()
boolean isFailOnInputLinesThreshold()
boolean isFailOnInputTimeoutThreshold()
java.lang.String getResponseSuccessPattern()
java.lang.String getResponseFailurePattern()
int getResponseMaxLines()
long getResponseMaxTimeout()
boolean isFailOnResponseThreshold()
java.lang.String getInputString()
boolean isSuccessOnInputThreshold()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |