Class HttpConversationContextImpl
java.lang.Object
org.jboss.weld.contexts.AbstractContext
org.jboss.weld.contexts.AbstractManagedContext
org.jboss.weld.contexts.AbstractBoundContext<R>
org.jboss.weld.contexts.AbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
org.jboss.weld.module.web.context.http.HttpConversationContextImpl
- All Implemented Interfaces:
jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context,org.jboss.weld.context.BoundContext<jakarta.servlet.http.HttpServletRequest>,org.jboss.weld.context.ConversationContext,org.jboss.weld.context.http.HttpConversationContext,org.jboss.weld.context.ManagedContext,org.jboss.weld.context.WeldAlterableContext
- Direct Known Subclasses:
LazyHttpConversationContextImpl
public class HttpConversationContextImpl
extends AbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
implements org.jboss.weld.context.http.HttpConversationContext
-
Field Summary
Fields inherited from class org.jboss.weld.contexts.AbstractConversationContext
CONVERSATIONS_ATTRIBUTE_NAME, DESTRUCTION_QUEUE_ATTRIBUTE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionHttpConversationContextImpl(String contextId, org.jboss.weld.bootstrap.api.ServiceRegistry services) -
Method Summary
Modifier and TypeMethodDescriptionprotected BoundBeanStorecreateRequestBeanStore(NamingScheme namingScheme, jakarta.servlet.http.HttpServletRequest request) protected BoundBeanStorecreateSessionBeanStore(NamingScheme namingScheme, jakarta.servlet.http.HttpSession session) protected Stringprotected ObjectgetRequestAttribute(jakarta.servlet.http.HttpServletRequest request, String name) protected ObjectgetSessionAttribute(jakarta.servlet.http.HttpServletRequest request, String name, boolean create) protected ObjectgetSessionAttributeFromSession(jakarta.servlet.http.HttpSession session, String name) getSessionAttributeNames(jakarta.servlet.http.HttpSession session) protected jakarta.servlet.http.HttpSessiongetSessionFromRequest(jakarta.servlet.http.HttpServletRequest request, boolean create) protected voidremoveRequestAttribute(jakarta.servlet.http.HttpServletRequest request, String name) protected voidsetRequestAttribute(jakarta.servlet.http.HttpServletRequest request, String name, Object value) protected voidsetSessionAttribute(jakarta.servlet.http.HttpServletRequest request, String name, Object value, boolean create) 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 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.http.HttpConversationContext
activateLazily, destroyMethods inherited from interface org.jboss.weld.context.ManagedContext
deactivateMethods inherited from interface org.jboss.weld.context.WeldAlterableContext
clearAndSet, getAllContextualInstances
-
Constructor Details
-
HttpConversationContextImpl
public HttpConversationContextImpl(String contextId, org.jboss.weld.bootstrap.api.ServiceRegistry services)
-
-
Method Details
-
setSessionAttribute
protected void setSessionAttribute(jakarta.servlet.http.HttpServletRequest request, String name, Object value, boolean create) - Specified by:
setSessionAttributein classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
getSessionAttribute
protected Object getSessionAttribute(jakarta.servlet.http.HttpServletRequest request, String name, boolean create) - Specified by:
getSessionAttributein classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
removeRequestAttribute
- Specified by:
removeRequestAttributein classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
setRequestAttribute
protected void setRequestAttribute(jakarta.servlet.http.HttpServletRequest request, String name, Object value) - Specified by:
setRequestAttributein classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
getRequestAttribute
- Specified by:
getRequestAttributein classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
createRequestBeanStore
protected BoundBeanStore createRequestBeanStore(NamingScheme namingScheme, jakarta.servlet.http.HttpServletRequest request) - Specified by:
createRequestBeanStorein classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
createSessionBeanStore
protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, jakarta.servlet.http.HttpSession session) - Specified by:
createSessionBeanStorein classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
getSessionAttributeFromSession
protected Object getSessionAttributeFromSession(jakarta.servlet.http.HttpSession session, String name) - Specified by:
getSessionAttributeFromSessionin classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
getSessionFromRequest
protected jakarta.servlet.http.HttpSession getSessionFromRequest(jakarta.servlet.http.HttpServletRequest request, boolean create) - Specified by:
getSessionFromRequestin classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
getNamingSchemePrefix
- Specified by:
getNamingSchemePrefixin classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
getSessionAttributeNames
- Specified by:
getSessionAttributeNamesin classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-