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
Constructors Constructor Description HttpConversationContextImpl(String contextId, org.jboss.weld.bootstrap.api.ServiceRegistry services)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BoundBeanStorecreateRequestBeanStore(NamingScheme namingScheme, jakarta.servlet.http.HttpServletRequest request)protected BoundBeanStorecreateSessionBeanStore(NamingScheme namingScheme, jakarta.servlet.http.HttpSession session)protected StringgetNamingSchemePrefix()protected 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)protected Iterator<String>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, setParameterName
-
Methods inherited from class org.jboss.weld.contexts.AbstractBoundContext
cleanup, clearAndSet, getAllContextualInstances, getBeanStore, setBeanStore
-
Methods inherited from class org.jboss.weld.contexts.AbstractManagedContext
isActive, isValid, removeState, setActive
-
Methods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry, isMultithreaded
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.enterprise.context.spi.Context
get, get, getScope, isActive
-
Methods inherited from interface org.jboss.weld.context.ConversationContext
activate, activate, generateConversationId, getConcurrentAccessTimeout, getConversation, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, invalidate, setConcurrentAccessTimeout, setDefaultTimeout, setParameterName
-
-
-
-
Constructor Detail
-
HttpConversationContextImpl
public HttpConversationContextImpl(String contextId, org.jboss.weld.bootstrap.api.ServiceRegistry services)
-
-
Method Detail
-
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
protected void removeRequestAttribute(jakarta.servlet.http.HttpServletRequest request, String name)- 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
protected Object getRequestAttribute(jakarta.servlet.http.HttpServletRequest request, String name)
- 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
protected String getNamingSchemePrefix()
- Specified by:
getNamingSchemePrefixin classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
getSessionAttributeNames
protected Iterator<String> getSessionAttributeNames(jakarta.servlet.http.HttpSession session)
- Specified by:
getSessionAttributeNamesin classAbstractConversationContext<jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpSession>
-
-