net.bioclipse.xws.client
Class ClientFactory
java.lang.Object
net.bioclipse.xws.client.ClientFactory
public class ClientFactory
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientFactory
public ClientFactory()
createClient
public static Client createClient(java.lang.String clientJID,
java.lang.String pwd,
java.lang.String host,
int port,
IExecutionPipe executionPipe)
throws XmppException
- Creates a XMPP client with the supplied account information.
- Parameters:
clientJID
- The JID used to identify to the server including a Resource, example: 'user@server.example.net/resource'.pwd
- The password.host
- The server to connect to. The server is usually the domain name behind the @ of the specified account JID without the resource, for example: 'server.example.net'.port
- The port to connect to (usually 5222).executionPipe
- The execution pipe that is used to execute listener code in a user-defined thread (in most cases the GUI thread).
- Returns:
- The new created XMPP client.
- Throws:
XmppException
getStaticClient
public static Client getStaticClient()
- Returns the static client.
- Returns:
- The static client or null.
setStaticClient
public static Client setStaticClient(Client newClient)
- Sets or replaces the static client.
- Parameters:
newClient
-
- Returns:
- The previous static client or null.