All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class webwisdom.tango.fake.TLAgentFake

java.lang.Object
   |
   +----webwisdom.tango.fake.TLAgentFake

public class TLAgentFake
extends Object
implements TLAgent
This class can be used instead of TangoAgent for browserless testing of Tango applets with FakeTangoServer.

See Also:
FakeTangoServer

Constructor Index

 o TLAgentFake(String, boolean, String, int)
Deprecated.
 o TLAgentFake(String, int)
Creates TLAgent which connects to TServerFake.

Method Index

 o add(TLListener)
 o exit()
 o send(AppEventMessage)
 o send(int[], AppEventMessage)
 o setSessionAttributes(String, String, String[])
 o socketToString(Socket)
 o toString()

Constructors

 o TLAgentFake
 public TLAgentFake(String serverHost,
                    int serverPort) throws TangoException
Creates TLAgent which connects to TServerFake.

Parameters:
serverHost,serverPort - fake tango server
Throws: TangoException
if cannot connect to the server
 o TLAgentFake
 public TLAgentFake(String userName,
                    boolean isMaster,
                    String serverHost,
                    int serverPort)
Note: TLAgentFake() is deprecated.

Methods

 o setSessionAttributes
 public void setSessionAttributes(String u,
                                  String m,
                                  String us[])
Parameters:
u - this user name
m - name of the session master
us - names of other users in the session
 o exit
 public void exit()
 o add
 public void add(TLListener l)
 o send
 public void send(int i[],
                  AppEventMessage m)
 o send
 public void send(AppEventMessage m)
 o socketToString
 public static String socketToString(Socket s)
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index