|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface defining a Collaboratio Session Provider. implementations of this interface are loaded by CollaborationSessionFactory.
Method Summary | |
void |
close()
tells the provider to release any resources. |
ApplicationInfo |
getApplicationInfo()
|
CollaborationSession |
getSession(java.lang.String serviceUrl,
java.lang.String loginName,
java.lang.String password,
CollaborationSessionListener listener)
creates a collaboration session. |
CollaborationSession |
getSession(java.lang.String serviceUrl,
java.lang.String destination,
java.lang.String loginName,
java.lang.String password,
CollaborationSessionListener listener)
creates a collaboration session. |
boolean |
isSASLProviderRegistered(java.lang.String mechanism)
Find out if there is a provider factory registered for the mechanism specified. |
void |
register(java.lang.String serviceURL,
RegistrationListener listener)
registers the user with the server |
void |
registerProvider(SASLClientProviderFactory providerfac)
Register a SASL client side provider factory with the session provider. |
void |
setApplicationInfo(ApplicationInfo appinfo)
|
Method Detail |
public CollaborationSession getSession(java.lang.String serviceUrl, java.lang.String loginName, java.lang.String password, CollaborationSessionListener listener) throws CollaborationException
serviceUrl
- service access point. May include hostname
domain name, port number, or other parameter to be interpreted
by API implementations to establish a connection with
the service.loginName
- login namepassword
- user passwordlistener
- session listener to convey asynchronous errors
and events.
CollaborationException
public CollaborationSession getSession(java.lang.String serviceUrl, java.lang.String destination, java.lang.String loginName, java.lang.String password, CollaborationSessionListener listener) throws CollaborationException
serviceUrl
- service access point. May include hostname
domain name, port number, or other parameter to be interpreted
by API implementations to establish a connection with
the service.destination
- address to be used by others
to identify the created session.
In the case of XMPP, this is the full JID
(resource included) used by this session.loginName
- login namepassword
- user passwordlistener
- session listener to convey asynchronous errors
and events.
CollaborationException
public void register(java.lang.String serviceURL, RegistrationListener listener) throws CollaborationException
serviceURL
- hostname of the IM serverlistener
- registration listener to convey
asynchronous registration events.
CollaborationException
public void setApplicationInfo(ApplicationInfo appinfo) throws CollaborationException
CollaborationException
public ApplicationInfo getApplicationInfo() throws CollaborationException
CollaborationException
public void registerProvider(SASLClientProviderFactory providerfac)
public boolean isSASLProviderRegistered(java.lang.String mechanism)
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |