|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.bioclipse.xws.client.Client
public class Client
| Constructor Summary | |
|---|---|
Client(java.lang.String clientJID,
java.lang.String pwd,
java.lang.String host,
int port,
IExecutionPipe executionPipe)
Initializes a newly created XMPP client with the supplied account information. |
|
| Method Summary | |
|---|---|
void |
addConnectionListener(IConnectionListener listener)
Adds a connection listener that gets informed about connect and disconnect events. |
void |
connect()
Connects the client to the server. |
void |
disconnect()
Disconnects the client from the server. |
IFunction |
getFunction(java.lang.String service_jid,
java.lang.String function_name)
Creates an object representing a function of a XMPP Service. |
IService |
getService(java.lang.String service_jid)
Creates an object representing a XMPP Service. |
IXmppItem |
getXmppItem(java.lang.String jid,
java.lang.String node)
Creates an object representing a XMPP item. |
boolean |
isConnected()
Checks the connection status. |
boolean |
removeConnectionListener(IConnectionListener listener)
Removes a connection listener. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Client(java.lang.String clientJID,
java.lang.String pwd,
java.lang.String host,
int port,
IExecutionPipe executionPipe)
throws XmppException
clientJID - The JID used to identify to the server including a resource, example: 'user@server.example.net/MyLaptop'.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).
XmppException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isConnected()
public void addConnectionListener(IConnectionListener listener)
listener - The listener to add.public boolean removeConnectionListener(IConnectionListener listener)
listener - The listener to remove.
public void connect()
throws XmppException
XmppException
public void disconnect()
throws XmppException
XmppExceptionpublic IService getService(java.lang.String service_jid)
service_jid - The JID of the XMPP Service.
public IFunction getFunction(java.lang.String service_jid,
java.lang.String function_name)
service_jid - The JID of the XMPP Service that hosts the function.function_name - The name of the function.
public IXmppItem getXmppItem(java.lang.String jid,
java.lang.String node)
jid - The JID of the XMPP item.node - The node name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||