public class BoundConversationContextImpl extends AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>> implements BoundConversationContext
CONVERSATIONS_ATTRIBUTE_NAME| Constructor and Description |
|---|
BoundConversationContextImpl(java.lang.String contextId,
BeanIdentifierIndex beanIdentifierIndex) |
| Modifier and Type | Method and Description |
|---|---|
protected BoundBeanStore |
createRequestBeanStore(NamingScheme namingScheme,
BoundRequest request) |
protected BoundBeanStore |
createSessionBeanStore(NamingScheme namingScheme,
java.util.Map<java.lang.String,java.lang.Object> session) |
protected java.lang.String |
getNamingSchemePrefix() |
protected java.lang.Object |
getRequestAttribute(BoundRequest request,
java.lang.String name)
Retrieve an attribute value from the request
|
protected java.lang.Object |
getSessionAttribute(BoundRequest request,
java.lang.String name,
boolean create)
Get an attribute value from the session.
|
protected java.lang.Object |
getSessionAttributeFromSession(java.util.Map<java.lang.String,java.lang.Object> session,
java.lang.String name)
Get an attribute value from the session.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getSessionFromRequest(BoundRequest request,
boolean create) |
protected void |
removeRequestAttribute(BoundRequest request,
java.lang.String name)
Remove an attribute from the request.
|
protected void |
setRequestAttribute(BoundRequest request,
java.lang.String name,
java.lang.Object value)
Set an attribute in the request.
|
protected void |
setSessionAttribute(BoundRequest request,
java.lang.String name,
java.lang.Object value,
boolean create)
Set an attribute in the session.
|
activate, activate, associate, associateRequest, associateRequestWithNewConversation, conversationPromotedToLongRunning, copyConversationIdGeneratorAndConversationsToSession, deactivate, destroy, destroyConversation, dissociate, generateConversationId, getConcurrentAccessTimeout, getConversation, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, getRequest, getScope, initialize, invalidate, isAssociated, sessionCreated, setConcurrentAccessTimeout, setDefaultTimeout, setParameterNamecleanup, getBeanStore, setBeanStoreisActive, isValid, setActivecheckContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroyactivate, activate, generateConversationId, getConcurrentAccessTimeout, getConversation, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, invalidate, setConcurrentAccessTimeout, setDefaultTimeout, setParameterNamedeactivatedestroyassociate, dissociatepublic BoundConversationContextImpl(java.lang.String contextId,
BeanIdentifierIndex beanIdentifierIndex)
protected void setSessionAttribute(BoundRequest request, java.lang.String name, java.lang.Object value, boolean create)
AbstractConversationContextsetSessionAttribute in class AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>>request - the request to set the session attribute inname - the name of the attributevalue - the value of the attributecreate - if false, the attribute will only be set if the session
already exists, otherwise it will always be setprotected java.lang.Object getSessionAttribute(BoundRequest request, java.lang.String name, boolean create)
AbstractConversationContextgetSessionAttribute in class AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>>request - the request to get the session attribute fromname - the name of the attributecreate - if false, the attribute will only be retrieved if the
session already exists, other wise it will always be retrievedprotected void removeRequestAttribute(BoundRequest request, java.lang.String name)
AbstractConversationContextremoveRequestAttribute in class AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>>request - the request to remove the attribute fromname - the name of the attributeprotected void setRequestAttribute(BoundRequest request, java.lang.String name, java.lang.Object value)
AbstractConversationContextsetRequestAttribute in class AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>>request - the request to set the attribute fromname - the name of the attributevalue - the value of the attributeprotected java.lang.Object getRequestAttribute(BoundRequest request, java.lang.String name)
AbstractConversationContextgetRequestAttribute in class AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>>request - the request to get the attribute fromname - the name of the attribute to getprotected BoundBeanStore createRequestBeanStore(NamingScheme namingScheme, BoundRequest request)
createRequestBeanStore in class AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>>protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, java.util.Map<java.lang.String,java.lang.Object> session)
createSessionBeanStore in class AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>>protected java.lang.Object getSessionAttributeFromSession(java.util.Map<java.lang.String,java.lang.Object> session,
java.lang.String name)
AbstractConversationContextgetSessionAttributeFromSession in class AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>>session - the session to get the session attribute fromname - the name of the attributeprotected java.util.Map<java.lang.String,java.lang.Object> getSessionFromRequest(BoundRequest request, boolean create)
getSessionFromRequest in class AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>>protected java.lang.String getNamingSchemePrefix()
getNamingSchemePrefix in class AbstractConversationContext<BoundRequest,java.util.Map<java.lang.String,java.lang.Object>>Copyright © 2015. All Rights Reserved.