|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJscClient
Provides access to features specific to the JSC protocol.
An IClient can be casted to an IJscClient if the specified protocol is JSC.
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 | |
---|---|
IBuddyList |
getReverseList()
Returns a reference to this client's Reverse List. |
int |
getWarningPercent()
Returns this client's warning percentage. |
boolean |
isSecure()
Returns true if this client is connected to the server, and the connection is secure. |
IBuddy[] |
resolveBuddies(String partialName)
If JBuddy Server is authenticating through an LDAP or Active Directory, this method attempts to resolve the name against Users in the directory using an LDAP search utilizing one or two words. |
void |
setSecure(boolean isSecure,
boolean isRequired)
Specifies whether a secure connection to the server should be used. |
void |
warnUser(String username,
boolean isAnonymous)
Issues a warning to another user. |
Method Detail |
---|
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 IClient
isSecure
- 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 IClient
void warnUser(String username, boolean isAnonymous) throws IOException
This can temporarily and negatively affect the ability of the user to to send messages, by raising their warning percentage. You can only warn users who have recently sent you messages.
username
- the name of the user you wish to warnisAnonymous
- whether this is an anonymous warning. Anonymous
warnings are less severe.
IOException
- if there is a problem communicating with the serverint getWarningPercent()
IBuddyList getReverseList()
The list contains the users who have registered interest in our online state. It is populated by the server during the connection process. After connecting, users that add us to their Buddy Lists are added to this list; users who remove us from their Buddy Lists are removed from it.
IBuddy[] resolveBuddies(String partialName) throws IOException
Use this method to retrieve information about users (like their username or nickname).
partialName
- if part of a user's name (like their first or last name)
IOException
- if there is a problem communicating with the
directory service
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |