public class TelnetTask.AntTelnetClient
extends org.apache.commons.net.telnet.TelnetClient
| Modifier and Type | Field | Description |
|---|---|---|
protected static int |
TERMINAL_TYPE |
|
protected static int |
TERMINAL_TYPE_IS |
|
protected static int |
TERMINAL_TYPE_SEND |
| Constructor | Description |
|---|---|
AntTelnetClient() |
| Modifier and Type | Method | 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProtocolCommandListener, connect, connect, connect, connect, connect, connect, createCommandSupport, fireCommandSent, fireReplyReceived, getCharset, getCharsetName, getCommandSupport, getConnectTimeout, getDefaultPort, getDefaultTimeout, getKeepAlive, getLocalAddress, getLocalPort, getProxy, getReceiveBufferSize, getRemoteAddress, getRemotePort, getSendBufferSize, getServerSocketFactory, getSoLinger, getSoTimeout, getTcpNoDelay, isAvailable, isConnected, removeProtocolCommandListener, setCharset, setConnectTimeout, setDefaultPort, setDefaultTimeout, setKeepAlive, setProxy, setReceiveBufferSize, setSendBufferSize, setServerSocketFactory, setSocketFactory, setSoLinger, setSoTimeout, setTcpNoDelay, verifyRemote_connectAction_, addOptionHandler, deleteOptionHandler, disconnect, getInputStream, getLocalOptionState, getOutputStream, getReaderThread, getRemoteOptionState, registerInputListener, registerNotifHandler, registerSpyStream, sendAYT, sendCommand, sendSubnegotiation, setReaderThread, stopSpyStream, unregisterInputListener, unregisterNotifHandlerprotected 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