org.inria.ns.reflex.util.wunit
Class ClientFactory

java.lang.Object
  extended by org.inria.ns.reflex.util.wunit.ClientFactory
Direct Known Subclasses:
ServerEmulator

public class ClientFactory
extends Object

Used as a base class for creating Web clients.

Can be extended or use the singleton.

Author:
Philippe Poulard

Constructor Summary
ClientFactory()
           
 
Method Summary
static ClientFactory getInstance()
          Return the singleton default factory.
 XClient newClient(String userAgent)
          Return a new client for discussing with a Web server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientFactory

public ClientFactory()
Method Detail

getInstance

public static ClientFactory getInstance()
Return the singleton default factory.

Returns:
The default factory.

newClient

public XClient newClient(String userAgent)
Return a new client for discussing with a Web server.

Parameters:
userAgent - The user agent to emulate.
Returns:
A new client.