com.ptc.wvs.server.cadagent
Class TelnetClient
java.lang.Object
com.ptc.wvs.server.cadagent.TelnetClient
- public class TelnetClient
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timeoutValue
private static long timeoutValue
VERBOSE
private static boolean VERBOSE
telnet
private TelnetClient.TWrapper telnet
log
private Log log
TelnetClient
public TelnetClient(Log log)
connect
public void connect(String host)
throws IOException
- Throws:
IOException
setPrompt
public void setPrompt(String prompt)
login
public void login(String userid,
String password)
throws IOException
- Throws:
IOException
sendLine
public String sendLine(String command)
throws IOException
- Throws:
IOException
disconnect
public void disconnect()
throws IOException
- Throws:
IOException
setDebug
public void setDebug(boolean b)
main
public static void main(String[] args)
throws IOException
- Throws:
IOException