This class handles the abstraction of the telnet protocol.
This class handles the abstraction of the telnet protocol. Currently it is a wrapper around href="http://jakarta.apache.org/commons/net/index.html">Jakarta Commons Net.
public void
sendString
(java.lang.String s, boolean echoString)
Write this string to the telnet session.
Write this string to the telnet session.
Parameters: - s - the string to write
- echoString - if true log the string sent
public void
waitForString
(java.lang.String s)
Read from the telnet session until the string we are
waiting for is found
Read from the telnet session until the string we are waiting for is found
Parameters: - s - The string to wait on
public void
waitForString
(java.lang.String s, java.lang.Integer timeout)
Read from the telnet session until the string we are
waiting for is found or the timeout has been reached
Read from the telnet session until the string we are waiting for is found or the timeout has been reached
Parameters: - s - The string to wait on
- timeout - The maximum number of seconds to wait