org.apache.tools.ant.taskdefs.optional.net
Class TelnetTask.AntTelnetClient
TelnetClient
org.apache.tools.ant.taskdefs.optional.net.TelnetTask.AntTelnetClient
- TelnetTask
public class TelnetTask.AntTelnetClient
extends TelnetClient
This class handles the abstraction of the telnet protocol.
Currently it is a wrapper around
Jakarta
Commons Net.
void | sendString(String s, boolean echoString) - Write this string to the telnet session.
|
void | waitForString(String s) - Read from the telnet session until the string we are
waiting for is found
|
void | waitForString(String s, Integer timeout) - Read from the telnet session until the string we are
waiting for is found or the timeout has been reached
|
sendString
public void sendString(String s,
boolean echoString)
Write this string to the telnet session.
s
- the string to writeechoString
- if true log the string sent
waitForString
public void waitForString(String s)
Read from the telnet session until the string we are
waiting for is found
s
- The string to wait on
waitForString
public void waitForString(String s,
Integer timeout)
Read from the telnet session until the string we are
waiting for is found or the timeout has been reached
s
- The string to wait ontimeout
- The maximum number of seconds to wait