|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILcsClient
Provides access to features specific to LCS (Microsoft's Live Communications Server).
An IClient can be casted to an ILcsClient if the specified protocol is LCS.
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 | |
---|---|
void |
endConversation(String name)
Ends a conversation with a user. |
IAddressBook |
getAddressBook()
Returns this client's Address Book. |
IAddressBookProvider |
getAddressBookProvider()
Returns this client's Address Book Provider. |
String |
getLoginName()
Returns the name used to authenticate this client with the server. |
boolean |
isSecure()
Returns true if this client is connected to the server, and the connection is secure. |
IBuddy[] |
resolveBuddies(String partialName)
Resolves a partial name to matching users from the LCS server's user directory. |
void |
setAddressBookProvider(IAddressBookProvider addressBookProvider)
Sets this client's Address Book Provider. |
void |
setLoginName(String name)
Sets the name used to authenticate this client with the server. |
void |
setSecure(boolean isSecure,
boolean isRequired)
Specifies whether a secure connection to the server should be used. |
Method Detail |
---|
void setLoginName(String name)
The default Kerberos login name used for a user
user@host.com
is user@HOST.COM
. If this is
not correct for a user, a login name should be provided here.
String getLoginName()
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 endConversation(String name)
A session is automatically opened with a user when sending or receiving messages. This closes that session. Use this when the session is no longer needed (such as when closing a UI message window).
IAddressBookProvider getAddressBookProvider()
void setAddressBookProvider(IAddressBookProvider addressBookProvider)
addressBookProvider
- the Address Book ProviderIAddressBook getAddressBook() throws Exception
The Address Book will be updated from the server (if possible) and returned. A failed update will not cause an exception to be thrown. This allows the locally saved Address Book to still be searched despite not being able to update for some reason.
IOException
- if some error occurred
Exception
IBuddy[] resolveBuddies(String partialName) throws IOException
Use this method to retrieve information about users (like their username or nickname).
partialName
- 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 |