Package org.jboss.weld.contexts.bound
Class BoundConversationContextImpl
java.lang.Object
org.jboss.weld.contexts.AbstractContext
org.jboss.weld.contexts.AbstractManagedContext
org.jboss.weld.contexts.AbstractBoundContext<R>
org.jboss.weld.contexts.AbstractConversationContext<BoundRequest,Map<String,Object>>
org.jboss.weld.contexts.bound.BoundConversationContextImpl
- All Implemented Interfaces:
jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context,BoundConversationContext,BoundContext<BoundRequest>,ConversationContext,ManagedContext,WeldAlterableContext
public class BoundConversationContextImpl
extends AbstractConversationContext<BoundRequest,Map<String,Object>>
implements BoundConversationContext
-
Field Summary
Fields inherited from class org.jboss.weld.contexts.AbstractConversationContext
CONVERSATIONS_ATTRIBUTE_NAME, DESTRUCTION_QUEUE_ATTRIBUTE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBoundConversationContextImpl(String contextId, org.jboss.weld.bootstrap.api.ServiceRegistry services) -
Method Summary
Modifier and TypeMethodDescriptionprotected BoundBeanStorecreateRequestBeanStore(NamingScheme namingScheme, BoundRequest request) protected BoundBeanStorecreateSessionBeanStore(NamingScheme namingScheme, Map<String, Object> session) protected Stringprotected ObjectgetRequestAttribute(BoundRequest request, String name) Retrieve an attribute value from the requestprotected ObjectgetSessionAttribute(BoundRequest request, String name, boolean create) Get an attribute value from the session.protected ObjectgetSessionAttributeFromSession(Map<String, Object> session, String name) Get an attribute value from the session.getSessionAttributeNames(Map<String, Object> session) getSessionFromRequest(BoundRequest request, boolean create) protected voidremoveRequestAttribute(BoundRequest request, String name) Remove an attribute from the request.protected voidsetRequestAttribute(BoundRequest request, String name, Object value) Set an attribute in the request.protected voidsetSessionAttribute(BoundRequest request, String name, Object value, boolean create) Set an attribute in the session.Methods inherited from class org.jboss.weld.contexts.AbstractConversationContext
activate, activate, associate, associateRequest, associateRequestWithNewConversation, conversationPromotedToLongRunning, copyConversationIdGeneratorAndConversationsToSession, deactivate, destroy, destroyConversation, dissociate, generateConversationId, getConcurrentAccessTimeout, getConversation, getConversationIdGenerator, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, getRequest, getScope, initialize, invalidate, isAssociated, sessionCreated, setConcurrentAccessTimeout, setDefaultTimeout, setParameterNameMethods inherited from class org.jboss.weld.contexts.AbstractBoundContext
cleanup, clearAndSet, getAllContextualInstances, getBeanStore, setBeanStoreMethods inherited from class org.jboss.weld.contexts.AbstractManagedContext
isActive, isValid, removeState, setActiveMethods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry, isMultithreadedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.enterprise.context.spi.AlterableContext
destroyMethods inherited from interface org.jboss.weld.context.BoundContext
associate, dissociateMethods inherited from interface org.jboss.weld.context.bound.BoundConversationContext
destroyMethods inherited from interface jakarta.enterprise.context.spi.Context
get, get, getScope, isActiveMethods inherited from interface org.jboss.weld.context.ConversationContext
activate, activate, generateConversationId, getConcurrentAccessTimeout, getConversation, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, invalidate, setConcurrentAccessTimeout, setDefaultTimeout, setParameterNameMethods inherited from interface org.jboss.weld.context.ManagedContext
deactivateMethods inherited from interface org.jboss.weld.context.WeldAlterableContext
clearAndSet, getAllContextualInstances
-
Constructor Details
-
BoundConversationContextImpl
public BoundConversationContextImpl(String contextId, org.jboss.weld.bootstrap.api.ServiceRegistry services)
-
-
Method Details
-
setSessionAttribute
Description copied from class:AbstractConversationContextSet an attribute in the session.- Specified by:
setSessionAttributein classAbstractConversationContext<BoundRequest,Map<String, Object>> - Parameters:
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 set
-
getSessionAttribute
Description copied from class:AbstractConversationContextGet an attribute value from the session.- Specified by:
getSessionAttributein classAbstractConversationContext<BoundRequest,Map<String, Object>> - Parameters:
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 retrieved- Returns:
- attribute
-
removeRequestAttribute
Description copied from class:AbstractConversationContextRemove an attribute from the request.- Specified by:
removeRequestAttributein classAbstractConversationContext<BoundRequest,Map<String, Object>> - Parameters:
request- the request to remove the attribute fromname- the name of the attribute
-
setRequestAttribute
Description copied from class:AbstractConversationContextSet an attribute in the request.- Specified by:
setRequestAttributein classAbstractConversationContext<BoundRequest,Map<String, Object>> - Parameters:
request- the request to set the attribute fromname- the name of the attributevalue- the value of the attribute
-
getRequestAttribute
Description copied from class:AbstractConversationContextRetrieve an attribute value from the request- Specified by:
getRequestAttributein classAbstractConversationContext<BoundRequest,Map<String, Object>> - Parameters:
request- the request to get the attribute fromname- the name of the attribute to get- Returns:
- the value of the attribute
-
createRequestBeanStore
- Specified by:
createRequestBeanStorein classAbstractConversationContext<BoundRequest,Map<String, Object>>
-
createSessionBeanStore
protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, Map<String, Object> session) - Specified by:
createSessionBeanStorein classAbstractConversationContext<BoundRequest,Map<String, Object>>
-
getSessionAttributeFromSession
Description copied from class:AbstractConversationContextGet an attribute value from the session.- Specified by:
getSessionAttributeFromSessionin classAbstractConversationContext<BoundRequest,Map<String, Object>> - Parameters:
session- the session to get the session attribute fromname- the name of the attribute- Returns:
- attribute
-
getSessionFromRequest
- Specified by:
getSessionFromRequestin classAbstractConversationContext<BoundRequest,Map<String, Object>>
-
getNamingSchemePrefix
- Specified by:
getNamingSchemePrefixin classAbstractConversationContext<BoundRequest,Map<String, Object>>
-
getSessionAttributeNames
- Specified by:
getSessionAttributeNamesin classAbstractConversationContext<BoundRequest,Map<String, Object>>
-