Class TelnetTask.TelnetRead
java.lang.Object
org.apache.tools.ant.taskdefs.optional.net.TelnetTask.TelnetSubTask
org.apache.tools.ant.taskdefs.optional.net.TelnetTask.TelnetRead
- Enclosing class:
TelnetTask
Reads the output from the connected server
until the required string is found or we time out.
-
Field Summary
Fields inherited from class org.apache.tools.ant.taskdefs.optional.net.TelnetTask.TelnetSubTask
taskString
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(TelnetTask.AntTelnetClient telnet) Execute the read task.void
setDefaultTimeout
(Integer defaultTimeout) Sets the default timeout if none has been set alreadyvoid
a timeout value that overrides any task wide timeout.Methods inherited from class org.apache.tools.ant.taskdefs.optional.net.TelnetTask.TelnetSubTask
addText, setString
-
Constructor Details
-
TelnetRead
public TelnetRead()
-
-
Method Details
-
execute
Execute the read task.- Overrides:
execute
in classTelnetTask.TelnetSubTask
- Parameters:
telnet
- the task to use- Throws:
BuildException
- on error
-
setTimeout
a timeout value that overrides any task wide timeout.- Parameters:
i
- anInteger
value
-
setDefaultTimeout
Sets the default timeout if none has been set already- Parameters:
defaultTimeout
- anInteger
value
-