|
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 CommunicationSession
Instance of a CommunicationSession object. Application can create Communication related objects from a CommunicationSession. When an event (eg: CommunicationEvent or ParticipantEvent) gets executed later for a Communication created from this CommunicationSession, the same CommunicationSession object will be injected into the CommunicationBean.
The form of the input parameter name in this interface's methods is: "sip:user@host" or "user@host", where user is either a user name or telephone number, host is domain name or IP address.
If the ServiceAttributes "domainName" attribute is specified, the name can be in the form of "sip:user" or "user".
Message, Communication, Participant| Field Summary | |
|---|---|
static String |
NAMEName of the HTTP session attribute to retrieve an instance of CommunicationSession. |
| Method Summary | ||
|---|---|---|
|
createCommunication(Class<C> type, String name, Communication other, Object... arg)A generic method to create any type of communication from another communication. |
|
|
createCommunication(Class<C> type, String name, Participant initiator, Object... arg)A generic method to create any type of communication. |
|
Conference |
createConference()Create a conference without a specified name. |
|
Conference |
createConference(Focus focus)Create a conference with specified focus implementation. |
|
Conference |
createConference(String name)Create a conference with a specified name. |
|
Conference |
createConference(String name, Conversation c)Create a conference from the Conversation. |
|
Conference |
createConference(String name, Conversation c, Focus focus)Create a conference from the Conversation with specified Focus implementation. |
|
Conference |
createConference(String name, Focus focus)Create a conference with a specified name and focus implementation. |
|
Conversation |
createConversation(Participant initiator)Create a Conversation between the initiator and another party. |
|
Conversation |
createConversation(Participant initiator, String name)Create a Conversation between the initiator and another party. |
|
Conversation |
createConversation(String initiator)Create a Conversation between the initiator and another party. |
|
Conversation |
createConversation(String initiator, String name)Create a Conversation between the initiator and another party. |
|
IMConference |
createIMConference()Create an IMConference. |
|
IMConference |
createIMConference(String name)Create an IMConference with a specified name. |
|
IMConference |
createIMConference(String name, IMConversation c)Create an IMConference from the IMConversation. |
|
IMConversation |
createIMConversation(String initiator)Create an IMConversation between the initiator and another party. |
|
IMConversation |
createIMConversation(String initiator, String name)Create an IMConversation between the initiator and another party. |
|
MSRPConference |
createMSRPConference()Create a MSRPConference without a specified name. |
|
MSRPConference |
createMSRPConference(String name)Create a MSRPConference with a specified name. |
|
MSRPConference |
createMSRPConference(String name, MSRPConversation c)Create a MSRPConference from the MSRPConversation. |
|
MSRPConversation |
createMSRPConversation(String initiator)Create an MSRPConversation between the initiator and another party. |
|
MSRPConversation |
createMSRPConversation(String initiator, String name)Create an MSRPConversation between the initiator and another party. |
|
|
createParticipant(Class<P> type, String name)Create a participant, that can be added to the Communication. |
|
|
createParticipant(Class<P> type, String name, javax.media.mscontrol.join.Joinable j)Create a participant that can be added to the communication with a specific Joinable. |
|
QueryInteraction |
createQueryInteraction(String initiator)Create an QueryInteraction between the initiator and another party. |
|
QueryInteraction |
createQueryInteraction(String initiator, String name)Create an QueryInteraction between the initiator and another party. |
|
Map<?,?> |
getAllAttributes()Retrieve all attributes set in this session. |
|
Object |
getAttribute(String name)Retrieve the attribute from the session. |
|
Object |
removeAttribute(String name)Remove the attribute from the session. |
|
void |
setAttribute(String name, Object value)Set an attribute in the session. |
|
| Field Detail |
|---|
static final String NAME
| Method Detail |
|---|
void setAttribute(String name,
Object value)
name - Name of the attribute.value - Value of the attribute.Object getAttribute(String name)
name - of the attribute.Map<?,?> getAllAttributes()
Object removeAttribute(String name)
name - Name of the attributeConference createConference()
createConference(null)ConferenceConference createConference(Focus focus)
createConference(null, focus) the conference name will use the name of focus.ConferenceConference createConference(String name)
name - Name of the conference.Conference
Conference createConference(String name,
Focus focus)
The SFT Conference focus has a default JSR 309 MediaMixer implementation, this method would enable creation of a conference with an existing JSR 309 mixer. So, application will be able to use JSR 309 APIs to create a Mixer and then wrap that Mixer in a Focus implementation to create the conference.
MediaMixer mixer = ...
CommunicationSession sess = ...
Focus focus = sess.createPariticpant(Focus.class, mixer);
Conference conference = sess.createConference(name, focus);
if parameter name is null, the conference name will use the focus name.name - Name of the conference.focus - a instance of focus implementation.Conference
Conference createConference(String name,
Conversation c)
If the recipient of the Conversation is different from the name, then a new conference will be created with the specified name and both the parties mentioned will be added to the conference.
This method is equivalent to executing createConference(name, c, null)
name - Name of the conference.c - Conversation objectConference
Conference createConference(String name,
Conversation c,
Focus focus)
name - Name of the conference.c - Conversation objectConference
Conversation createConversation(String initiator,
String name)
name - Name of the Conversation.initiator - Initiator of the Conversation.ConversationConversation createConversation(String initiator)
createCall(initiator, null).initiator - Initiator of the Conversation.Conversation
Conversation createConversation(Participant initiator,
String name)
name - Name of the Conversation.initiator - Initiator of the Conversation.ConversationConversation createConversation(Participant initiator)
createCall(initiator, null).initiator - Initiator of the Conversation.Conversation
IMConversation createIMConversation(String initiator,
String name)
name - Name of the IMConversation.initiator - Initiator of the IMConversation.IMConversationIMConversation createIMConversation(String initiator)
createCall(initiator, null).initiator - Initiator of the IMConversation.IMConversationIMConference createIMConference()
createIMConference(null)IMConferenceIMConference createIMConference(String name)
name - Name of the IMConference.IMConference
IMConference createIMConference(String name,
IMConversation c)
name - Name of the IMConference.c - IMConversation objectIMConference
<C extends Communication> C createCommunication(Class<C> type,
String name,
Participant initiator,
Object... arg)
CommunicationSession session = ....
UserParticipant initiator =
session.createParticipant(UserParticipant.class, "alice@example.com");
IMConversation imc = session.createCommunication(IMConversation.class, "alice-chat", initiator);
This also enables extending SFT with new types of Communications.C - Generic type name of the communicationtype - Class of the Communication to be created.name - Name of the Communication.initiator - Initiator of the Communication.arg - Any additional argument, a third party might require.
<C extends Communication> C createCommunication(Class<C> type,
String name,
Communication other,
Object... arg)
CommunicationSession session = ....
Conversation conv = ...//
Conference conf = session.createCommunication(Conference.class, "conference@example.com", conv);
This also enables extending SFT with new types of Communications.C - Generic type name of the communicationtype - Class of the Communication to be created.name - Name of the Communication.other - The input communication.arg - Any additional argument, a third party might require.MSRPConference createMSRPConference()
createMSRPConference(null)MSRPConferenceMSRPConference createMSRPConference(String name)
name - Name of the MSRPConference.MSRPConference
MSRPConference createMSRPConference(String name,
MSRPConversation c)
createMSRPConference(name, c, null)name - Name of the MSRPConference.c - MSRPConversation objectMSRPConference
<P extends Participant> P createParticipant(Class<P> type,
String name)
P - Any Participant type which is a child of a Participant.type - Any Class that is a child of Participant.name - Name of the participantParticipant object.
<P extends Participant> P createParticipant(Class<P> type,
String name,
javax.media.mscontrol.join.Joinable j)
P - Any Participant type which is a child of a Participant.type - Any Class that is a child of Participant.name - Name of the participantj - An instance of Joinable object.Participant object.
QueryInteraction createQueryInteraction(String initiator,
String name)
name - Name of the QueryInteraction.initiator - Initiator of the QueryInteraction.QueryInteractionQueryInteraction createQueryInteraction(String initiator)
initiator - Initiator of the QueryInteraction.QueryInteractionMSRPConversation createMSRPConversation(String initiator)
initiator - Initiator of the MSRPConversation.MSRPConversation
MSRPConversation createMSRPConversation(String initiator,
String name)
name - Name of the MSRPConversation.initiator - Initiator of the MSRPConversation.MSRPConversation
|
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.