public class ContainedConversation extends java.lang.Object implements Conversation, java.io.Serializable
Conversation implementation used by the conversation container.
This is an internal helper class of the SessionBindingConversationManager.
| Constructor and Description |
|---|
ContainedConversation(ConversationContainer container,
ConversationId id,
ConversationLock lock)
Create a new contained conversation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Ends this conversation.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getAttribute(java.lang.Object name)
Returns the conversation attribute with the specified name.
|
ConversationId |
getId()
Returns the unique id assigned to this conversation.
|
int |
hashCode() |
void |
lock()
Lock this conversation.
|
void |
putAttribute(java.lang.Object name,
java.lang.Object value)
Puts a conversation attribute into this context.
|
void |
removeAttribute(java.lang.Object name)
Removes a conversation attribute.
|
protected void |
setContainer(ConversationContainer container) |
protected void |
setId(ConversationId id) |
java.lang.String |
toString() |
void |
unlock()
Unlock this conversation, making it available to others for manipulation.
|
public ContainedConversation(ConversationContainer container, ConversationId id, ConversationLock lock)
container - the container containing the conversationid - the unique id assigned to the conversationlock - the conversation lockprotected void setContainer(ConversationContainer container)
public ConversationId getId()
ConversationgetId in interface Conversationprotected void setId(ConversationId id)
public void lock()
Conversationlock in interface Conversationpublic java.lang.Object getAttribute(java.lang.Object name)
ConversationgetAttribute in interface Conversationname - the attribute namepublic void putAttribute(java.lang.Object name,
java.lang.Object value)
ConversationputAttribute in interface Conversationname - the attribute namevalue - the attribute valuepublic void removeAttribute(java.lang.Object name)
ConversationremoveAttribute in interface Conversationname - the attribute namepublic void end()
Conversationend in interface Conversationpublic void unlock()
Conversationunlock in interface Conversationpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object