|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.conversation.ConversationManager
public class ConversationManager
Manager for the conversations. Each conversation is related with conversation id and session id.
| Constructor Summary | |
|---|---|
ConversationManager(WebBeansContext webBeansContext)
Creates new conversation manager |
|
| Method Summary | |
|---|---|
void |
addConversationContext(javax.enterprise.context.Conversation conversation,
ConversationContext context)
Adds new conversation context. |
void |
destroyAllConversations()
Destroys all conversations |
void |
destroyConversationContextWithSessionId(String sessionId)
Destroy conversations with given session id. |
void |
destroyWithRespectToTimout()
Destroy unactive conversations. |
javax.enterprise.context.Conversation |
getConversationBeanReference()
Gets conversation instance from conversation bean. |
ConversationContext |
getConversationContext(javax.enterprise.context.Conversation conversation)
Gets conversation's context instance. |
Map<javax.enterprise.context.Conversation,ConversationContext> |
getConversationMapWithSessionId(String sessionId)
Return all conversation/context associated with sessionid. |
javax.enterprise.context.Conversation |
getPropogatedConversation(String conversationId,
String sessionId)
Gets conversation with id and session id. |
boolean |
isConversationExistWithGivenId(String conversationId)
Check conversation id exists. |
ConversationContext |
removeConversation(javax.enterprise.context.Conversation conversation)
Remove given conversation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConversationManager(WebBeansContext webBeansContext)
| Method Detail |
|---|
public void addConversationContext(javax.enterprise.context.Conversation conversation,
ConversationContext context)
conversation - new conversationcontext - new contextpublic boolean isConversationExistWithGivenId(String conversationId)
conversationId - conversation id
public Map<javax.enterprise.context.Conversation,ConversationContext> getConversationMapWithSessionId(String sessionId)
sessionId -
public ConversationContext removeConversation(javax.enterprise.context.Conversation conversation)
conversation - conversation instance
public ConversationContext getConversationContext(javax.enterprise.context.Conversation conversation)
conversation - conversation instance
public javax.enterprise.context.Conversation getPropogatedConversation(String conversationId,
String sessionId)
conversationId - conversation idsessionId - session id
public void destroyConversationContextWithSessionId(String sessionId)
sessionId - session idpublic javax.enterprise.context.Conversation getConversationBeanReference()
public void destroyWithRespectToTimout()
public void destroyAllConversations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||