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()
Conversation
getId
in interface Conversation
protected void setId(ConversationId id)
public void lock()
Conversation
lock
in interface Conversation
public java.lang.Object getAttribute(java.lang.Object name)
Conversation
getAttribute
in interface Conversation
name
- the attribute namepublic void putAttribute(java.lang.Object name, java.lang.Object value)
Conversation
putAttribute
in interface Conversation
name
- the attribute namevalue
- the attribute valuepublic void removeAttribute(java.lang.Object name)
Conversation
removeAttribute
in interface Conversation
name
- the attribute namepublic void end()
Conversation
end
in interface Conversation
public void unlock()
Conversation
unlock
in interface Conversation
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object