org.springframework.build.ant
Class TelnetTask.TelnetRead
java.lang.Object
org.springframework.build.ant.TelnetTask.TelnetSubTask
org.springframework.build.ant.TelnetTask.TelnetRead
- Enclosing class:
- TelnetTask
public class TelnetTask.TelnetRead
- extends TelnetTask.TelnetSubTask
Reads the output from the connected server
until the required string is found or we time out.
Field Summary |
private java.lang.Integer |
timeout
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timeout
private java.lang.Integer timeout
TelnetTask.TelnetRead
public TelnetTask.TelnetRead()
execute
public void execute(TelnetTask.AntTelnetClient telnet)
throws org.apache.tools.ant.BuildException
- Execute the read task.
- Overrides:
execute
in class TelnetTask.TelnetSubTask
- Parameters:
telnet
- the task to use
- Throws:
org.apache.tools.ant.BuildException
- on error
setTimeout
public void setTimeout(java.lang.Integer i)
- a timeout value that overrides any task wide timeout.
- Parameters:
i
- an Integer
value
setDefaultTimeout
public void setDefaultTimeout(java.lang.Integer defaultTimeout)
- Sets the default timeout if none has been set already
- Parameters:
defaultTimeout
- an Integer
value