|
||||||||||
| 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 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.
Message,
Communication| Field Summary | |
|---|---|
static String |
NAME
Name 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 with a specified name. |
|
Conference |
createConference(String name)
Create a conference with a specified name. |
|
Conference |
createConference(String name,
Conversation c)
Create a conference from the Conversation. |
|
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(String name)
Create a MSRPConference with a specified name. |
|
MSRPConference |
createMSRPConference(String name,
MSRPConversation c)
Create a MSRPConference from a MSRPConversation. |
|
|
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. |
|
PresenceSource |
createPresenceSource(String userId)
Creates a Presence Source using the provided user ID as its IMS entity. |
|
PresenceWatcher |
createPresenceWatcher(Group group)
Creates a presence watcher. |
|
PresenceWatcher |
createPresenceWatcher(String fromUserId,
String toUserId)
Creates a presence watcher. |
|
Registration |
createRegistration(String fromUserId)
Creates a Registration with fromUserId as the user identity to register on the network. |
|
Registration |
createRegistration(String fromUserId,
List<ProxyAuthentication> authList)
Creates a Registration with fromUserId as the user identity to register on the network, with a list of credentials. |
|
Registration |
createRegistration(String fromUserId,
ProxyAuthentication auth)
Creates a Registration with fromUserId as the user identity to register on the network, with one set of credentials. |
|
WatcherInfoSubscriber |
createWatcherInfoSubscriber(String userId)
Creates a WatcherInfoSubscriber object for the given user ID. |
|
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 attribute
Conference createConference()
createConference(null)
ConferenceConference createConference(String name)
name - Name of the conference.
Conference
Conference createConference(String name,
Conversation c)
name - Name of the conference.c - Conversation object
Conference
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 object
IMConference
<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 CAFE 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 CAFE 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(String name,
MSRPConversation c)
name - Unique name to identify the MSRPConferencec - MSRPConversation object
CommunicationException - If the MSRPConference with the same name already exists.MSRPConference createMSRPConference(String name)
name - Unique name to identify the MSRPConference.
CommunicationException - If the MSRPConference with the same name already exists.
<P extends Participant> P createParticipant(Class<P> type,
String name)
P - Any Participant type that extends a MediaParticipant.type - Any Class that extends MediaParticipant class.name - Name of the participant
MediaParticipant object.
<P extends Participant> P createParticipant(Class<P> type,
String name,
javax.media.mscontrol.join.Joinable j)
P - Any Participant type that extends a MediaParticipant.type - Any Class that extends MediaParticipant class.name - Name of the participantj - An instance of Joinable object.
MediaParticipant object.Registration createRegistration(String fromUserId)
fromUserId - The user identity to register.
Registration object that can perform the
registration.
Registration createRegistration(String fromUserId,
ProxyAuthentication auth)
fromUserId - The user identity to register.auth - A set of credentials.
Registration object that can perform the
registration.
Registration createRegistration(String fromUserId,
List<ProxyAuthentication> authList)
fromUserId - The user identity to register.authList - A list with credentials.
Registration object that can perform the
registration.PresenceSource createPresenceSource(String userId)
userId - the entity to use for publishing.
PresenceSource object to publish presence information.PresenceWatcher createPresenceWatcher(Group group)
group - The (user specific) group of users to be watched.
PresenceWatcher for the specified group.
PresenceWatcher createPresenceWatcher(String fromUserId,
String toUserId)
fromUserId - the watchertoUserId - the presentity watched
PresenceWatcher for the specified toUser.WatcherInfoSubscriber createWatcherInfoSubscriber(String userId)
userId - the entity that is subscribing, which is also the user ID
of which the Watcher state changes are going to be reported.
WatcherInfoSubscriber object created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||