|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IJabberClient
Provides access to features specific to the JABBER protocol.
An IClient can be casted to an IJabberClient if the specified protocol is JABBER.
| Field Summary |
|---|
| Fields inherited from interface com.zion.jbuddy.IClient |
|---|
AIM, CONNECTION_CLOSED_REASON, DISCONNECT_REASON, FAILED_LOGIN_REASON, ICQ, JABBER, JSC, LCS, MSN, NETWORK_ERROR_REASON, PLAIN_TEXT, RICH_TEXT, SAMETIME, SERVICE_TEMPORARILY_UNAVAILABLE_REASON, UNKNOWN_REASON, USER_BOOTED_REASON, YIM |
| Method Summary | |
|---|---|
String |
getResourceName()
Returns this client's resource name. |
boolean |
isSecure()
Returns true if this client is connected to the server, and the connection is secure. |
boolean |
isUseXMPP()
Returns true if this client should use the XMPP protocol. |
void |
sendConfigToServer()
Saves the permit list, deny list, and permit mode to the server. |
boolean |
setResourceName(String name)
Sets the name of this client's resource. |
void |
setSecure(boolean isSecure,
boolean isRequired)
Specifies whether a secure connection to the server should be used. |
boolean |
setUseXMPP(boolean b)
Specifies whether this client should use the XMPP protocol. |
| Method Detail |
|---|
String getResourceName()
boolean setResourceName(String name)
The resource name can only be set or changed before
connect() is called.
name - the name of this client's resource. If null, or an empty
string, the default name "JBuddy" will be used.
void setSecure(boolean isSecure,
boolean isRequired)
Valid for AIM, ICQ, JABBER, JSC, LCS.
This method will do nothing if it is called on a client that doesn't support TLS connections.
setSecure in interface IClientisSecure - whether a secure connection to the server should be
used. If this is true, when connecting, a TLS
connection will be opened with the server.isRequired - whether a secure connection to the server is required.
If isSecure and isRequired are both true, connect()
will only succeed if a secure connection was
successfully established.boolean isSecure()
Valid for AIM, ICQ, JABBER, JSC, LCS.
isSecure in interface IClientboolean setUseXMPP(boolean b)
boolean isUseXMPP()
void sendConfigToServer()
throws IOException
This method must be called for changes to any of these items to go into effect. This applies privacy settings.
sendConfigToServer in interface IClientIOException - if there is a problem communicating with the server
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||