public class TelnetTask.AntTelnetClient
extends org.apache.commons.net.telnet.TelnetClient
Modifier and Type | Field and Description |
---|---|
protected static int |
TERMINAL_TYPE |
protected static int |
TERMINAL_TYPE_IS |
protected static int |
TERMINAL_TYPE_SEND |
Constructor and Description |
---|
AntTelnetClient() |
Modifier and Type | Method and Description |
---|---|
void |
sendString(java.lang.String s,
boolean echoString)
Write this string to the telnet session.
|
void |
waitForString(java.lang.String s)
Read from the telnet session until the string we are
waiting for is found
|
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
|
_connectAction_, addOptionHandler, deleteOptionHandler, disconnect, getInputStream, getLocalOptionState, getOutputStream, getReaderThread, getRemoteOptionState, registerNotifHandler, registerSpyStream, sendAYT, setReaderThread, stopSpyStream, unregisterNotifHandler
connect, connect, connect, connect, connect, connect, getConnectTimeout, getDefaultPort, getDefaultTimeout, getKeepAlive, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getServerSocketFactory, getSoLinger, getSoTimeout, getTcpNoDelay, isConnected, setConnectTimeout, setDefaultPort, setDefaultTimeout, setKeepAlive, setReceiveBufferSize, setSendBufferSize, setServerSocketFactory, setSocketFactory, setSoLinger, setSoTimeout, setTcpNoDelay, verifyRemote
protected static final int TERMINAL_TYPE
protected static final int TERMINAL_TYPE_SEND
protected static final int TERMINAL_TYPE_IS
public void waitForString(java.lang.String s)
s
- The string to wait onpublic void waitForString(java.lang.String s, java.lang.Integer timeout)
s
- The string to wait ontimeout
- The maximum number of seconds to waitpublic void sendString(java.lang.String s, boolean echoString)
s
- the string to writeechoString
- if true log the string sent