com.ptc.wvs.server.cadagent
Class TelnetClient

java.lang.Object
  extended bycom.ptc.wvs.server.cadagent.TelnetClient

public class TelnetClient
extends Object


Nested Class Summary
 class TelnetClient.TWrapper
           
 
Field Summary
private  Log log
           
private  TelnetClient.TWrapper telnet
           
private static long timeoutValue
           
private static boolean VERBOSE
           
 
Constructor Summary
TelnetClient(Log log)
           
 
Method Summary
 void connect(String host)
           
 void disconnect()
           
 void login(String userid, String password)
           
static void main(String[] args)
           
 String sendLine(String command)
           
 void setDebug(boolean b)
           
 void setPrompt(String prompt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeoutValue

private static long timeoutValue

VERBOSE

private static boolean VERBOSE

telnet

private TelnetClient.TWrapper telnet

log

private Log log
Constructor Detail

TelnetClient

public TelnetClient(Log log)
Method Detail

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