|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMConversation
Represents a two party IM conversation. It extends a Interaction. The application would use this communication type to send and receive messages.
IMConversation is created by the SFT internally for the incoming MESSAGE request. Upon the creation of IMConversation, CommunicationEvent.Type.INITIALIZATION
event will be invoked on the CommunicationBean. IMConversation also can be created by invoking the related API . There are two ways to create this communication object:
CommunicationSession.createIMConversation(String initiator)
CommunicationSession.createIMConversation(String initiator, String name)
If the CommunicationBean creates an IMConference with this conversation, then this conversation will be terminated, and the IMConference will be initiated. (Refer IMConference
usage examples).
If the CommunicationBean either does not handle the event or does not create the IMConference, then the IMConversation between the two remote parties will be established.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.oracle.sft.api.Communication |
---|
Communication.State |
Method Summary | |
---|---|
CommonPresenceInstantMessage |
createCommonPresenceInstantMessage() Create a Common Presence and Instant Messaging message |
EndUserConfirmationMessage |
createEndUserConfirmationRequestMessage(EndUserConfirmationData request) Create End User Confirmation Request Message with supplied End User Confirmation data |
EndUserConfirmationMessage |
createEndUserConfirmationResponseMessage(EndUserConfirmationData response) Create End User Confirmation Response in Message with supplied End User Confirmation data |
MessageIndication |
createMessageIndication() Creates a message indication object. |
MessageIndication |
createMessageIndication(MessageIndication.State state) Creates a message indication object. |
TextMessage |
createTextMessage() Creates an empty text message object. |
TextMessage |
createTextMessage(String msg) Creates the text message with the supplied text. |
int |
getIdleTime() Return the current value of the idle time. |
Participant |
getOtherParty(Participant p) Get the other party of the specified participant in this IMConversation. |
UserParticipant |
getParticipant() Retrieve the participant which receives the messages from the initiator. |
void |
setIdleTime(int idleTime) An IM conversation by default gets destroyed as soon as the message is received successfully or sent successfully. |
Methods inherited from interface com.oracle.sft.api.Interaction |
---|
addParticipant, addParticipant, addParticipant, addParticipant, getParticipant, getParticipant, removeParticipant, removeParticipant, replaceParticipant, replaceParticipant |
Methods inherited from interface com.oracle.sft.api.Communication |
---|
addAgent, end, getAgent, getAgents, getInitiator, getName, getState, removeAgent |
Method Detail |
---|
TextMessage createTextMessage()
TextMessage
TextMessage createTextMessage(String msg)
TextMessage tm = im.createTextMessage(); tm.setText(msg);
msg
- Text data of the message.TextMessage
MessageIndication createMessageIndication()
MessageIndication
MessageIndication createMessageIndication(MessageIndication.State state)
state
- State of the MessageIndication.MessageIndication
, MessageIndication.State
void setIdleTime(int idleTime)
idleTime
- Idle time in seconds.int getIdleTime()
UserParticipant getParticipant()
EndUserConfirmationMessage createEndUserConfirmationRequestMessage(EndUserConfirmationData request)
request
- EndUserConfirmationDataEndUserConfirmationMessage createEndUserConfirmationResponseMessage(EndUserConfirmationData response)
response
- EndUserConfirmationDataCommonPresenceInstantMessage createCommonPresenceInstantMessage()
Participant getOtherParty(Participant p)
p
- The initiator or participant of current IMConversation.
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2012 Oracle Corporation. All Rights Reserved.