|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.conversation.impl.ConversationContainer
public class ConversationContainer
Container for conversations that is stored in the session. When the session expires this container will go with it, implicitly expiring all contained conversations.
This is an internal helper class of the SessionBindingConversationManager
.
Constructor Summary | |
---|---|
ConversationContainer(int maxConversations,
java.lang.String sessionKey)
Create a new conversation container. |
Method Summary | |
---|---|
protected ContainedConversation |
createContainedConversation(ConversationId id,
ConversationLock lock)
|
Conversation |
createConversation(ConversationParameters parameters,
ConversationLock lock)
Create a new conversation based on given parameters and add it to the container. |
Conversation |
getConversation(ConversationId id)
Return the identified conversation. |
protected java.util.List<ContainedConversation> |
getConversations()
|
protected ConversationId |
nextId()
|
void |
removeConversation(ConversationId id)
Remove identified conversation from this container. |
int |
size()
Returns the current size of the conversation container: the number of conversations contained within it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConversationContainer(int maxConversations, java.lang.String sessionKey)
maxConversations
- the maximum number of allowed concurrent conversations, -1 for unlimitedsessionKey
- the key of this conversation container in the sessionMethod Detail |
---|
public int size()
public Conversation createConversation(ConversationParameters parameters, ConversationLock lock)
parameters
- descriptive conversation parameterslock
- the conversation lock
protected ConversationId nextId()
public Conversation getConversation(ConversationId id) throws NoSuchConversationException
id
- the id to lookup
NoSuchConversationException
- if the conversation cannot be foundprotected final java.util.List<ContainedConversation> getConversations()
public void removeConversation(ConversationId id)
protected ContainedConversation createContainedConversation(ConversationId id, ConversationLock lock)
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |