| 
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Extends the collab ISession with additional instant messaging
 specific functionality. See the package description for the IM package for
 more information on how to use the API.
| Field Summary | |
static java.lang.String | 
PROP_IM_PASSWORD
Session property for the IM password.  | 
static java.lang.String | 
PROP_IM_PORT
Session property for the port of the server to use when connecting to the IM server.  | 
static java.lang.String | 
PROP_IM_PROTOCOL
Session property for the protocol to use when connecting to the IM server.  | 
static java.lang.String | 
PROP_IM_SERVER
Session property for the hostname of the server to use when connecting to the IM server.  | 
static java.lang.String | 
PROP_IM_USERNAME
Session property for the IM username.  | 
| Fields inherited from interface com.compoze.collab.ISession | 
PROP_ADMIN_LOCALE, PROP_AUTO_FETCH, PROP_LOCALE, PROP_LOG_LEVEL, PROP_PROGRAMMER_LOCALE, PROP_PROVIDER, PROP_SCHEMA, PROPVALUE_REMOVE, STATE_AUTHENTICATED, STATE_INITIALIZED, STATE_OPEN, STATE_UNINITIALIZED | 
| Method Summary | |
 void | 
addImListener(IImListener listener)
Adds a listener for events related to this session.  | 
 void | 
removeImListener(IImListener listener)
Removes a listener for events related to this session.  | 
 void | 
setPresence(FriendStatus status)
Sets the presence status of the current user.  | 
 void | 
setTypingStatus(IFriend friend,
                boolean bTyping)
Does the same thing as setTypingStatus(String,boolean),
 but accepts an IFriend reference instead of a user name | 
 void | 
setTypingStatus(java.lang.String sUsername,
                boolean bTyping)
Indicates that the user is typing a message to a specific user.  | 
| Methods inherited from interface com.compoze.collab.ISession | 
addLogListener, close, endProfile, endTimer, endTimer, getAdminLocale, getAttribute, getDefaultRootContainer, getLocale, getLogLevel, getOption, getOptions, getProgrammerLocale, getProperty, getProvider, getState, isCapabilitySupported, log, login, login, logout, open, open, removeAttribute, setAdminLocale, setAttribute, setLocale, setLogLevel, setOption, setOptions, setProgrammerLocale, startProfile, startProfile, startTimer, startTimer | 
| Field Detail | 
public static final java.lang.String PROP_IM_USERNAME
public static final java.lang.String PROP_IM_PASSWORD
public static final java.lang.String PROP_IM_PROTOCOL
tcp or http.public static final java.lang.String PROP_IM_SERVER
public static final java.lang.String PROP_IM_PORT
| Method Detail | 
public void setTypingStatus(java.lang.String sUsername,
                            boolean bTyping)
                     throws CollaborationException
true, you
 should set it back to false after the user has stopped typing.
 It is not appropriate to do this right after a key is pressed, but after a
 delay in your application of a few seconds. When you finally call
 IMessage.send() on a message, the
 typing status is automatically set to false for the user that
 you're sending to, so there's is no need to do this before sending the
 message (in fact, it is not desirable to do because it will cause extra
 network traffic to send an unneeded typing notification).sUsername - the user to send the typing status to (not null)bTyping - if true, the user is type, if
		false then the user is not typingCollaborationException - (if the typing notification could not
		be sent)
public void setTypingStatus(IFriend friend,
                            boolean bTyping)
                     throws CollaborationException
setTypingStatus(String,boolean),
 but accepts an IFriend reference instead of a user namefriend - the user to send the typing status to (not null)bTyping - if true, the user is type, if
		false then the user has finishedCollaborationException - CollaborationException (if the typing notification could not
		be sent)
public void setPresence(FriendStatus status)
                 throws CollaborationException
status - the status (not null)
public void addImListener(IImListener listener)
                   throws CollaborationException
listener - the IM listener (not null, and
		must implement Serializable if the session is to
		be serialized)
public void removeImListener(IImListener listener)
                      throws CollaborationException
listener - the listener to remove (not null)
  | 
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||