Class ContainedConversation
java.lang.Object
org.springframework.webflow.conversation.impl.ContainedConversation
- All Implemented Interfaces:
Serializable,Conversation
Internal
Conversation implementation used by the conversation container.
This is an internal helper class of the SessionBindingConversationManager.
- Author:
- Erwin Vervaet
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContainedConversation(ConversationContainer container, ConversationId id, ConversationLock lock) Create a new contained conversation. -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Ends this conversation.booleangetAttribute(Object name) Returns the conversation attribute with the specified name.getId()Returns the unique id assigned to this conversation.inthashCode()voidlock()Lock this conversation.voidputAttribute(Object name, Object value) Puts a conversation attribute into this context.voidremoveAttribute(Object name) Removes a conversation attribute.protected voidsetContainer(ConversationContainer container) protected voidsetId(ConversationId id) toString()voidunlock()Unlock this conversation, making it available to others for manipulation.
-
Constructor Details
-
ContainedConversation
public ContainedConversation(ConversationContainer container, ConversationId id, ConversationLock lock) Create a new contained conversation.- Parameters:
container- the container containing the conversationid- the unique id assigned to the conversationlock- the conversation lock
-
-
Method Details
-
setContainer
-
getId
Description copied from interface:ConversationReturns the unique id assigned to this conversation. This id remains the same throughout the life of the conversation. This method can be safely called without owning the lock of this conversation.- Specified by:
getIdin interfaceConversation- Returns:
- the conversation id
-
setId
-
lock
public void lock()Description copied from interface:ConversationLock this conversation. May block until the lock is available, if someone else has acquired the lock.- Specified by:
lockin interfaceConversation
-
getAttribute
Description copied from interface:ConversationReturns the conversation attribute with the specified name. You need to acquire the lock on this conversation before calling this method.- Specified by:
getAttributein interfaceConversation- Parameters:
name- the attribute name- Returns:
- the attribute value
-
putAttribute
Description copied from interface:ConversationPuts a conversation attribute into this context. You need to acquire the lock on this conversation before calling this method.- Specified by:
putAttributein interfaceConversation- Parameters:
name- the attribute namevalue- the attribute value
-
removeAttribute
Description copied from interface:ConversationRemoves a conversation attribute. You need to acquire the lock on this conversation before calling this method.- Specified by:
removeAttributein interfaceConversation- Parameters:
name- the attribute name
-
end
public void end()Description copied from interface:ConversationEnds this conversation. This method should only be called once to terminate the conversation and cleanup any allocated resources. You need to aquire the lock on this conversation before calling this method.- Specified by:
endin interfaceConversation
-
unlock
public void unlock()Description copied from interface:ConversationUnlock this conversation, making it available to others for manipulation.- Specified by:
unlockin interfaceConversation
-
toString
-
equals
-
hashCode
public int hashCode()
-