public class HttpConversationContextImpl extends AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession> implements org.jboss.weld.context.http.HttpConversationContext
CONVERSATIONS_ATTRIBUTE_NAME
Constructor and Description |
---|
HttpConversationContextImpl(String contextId,
BeanIdentifierIndex beanIdentifierIndex) |
Modifier and Type | Method and Description |
---|---|
protected BoundBeanStore |
createRequestBeanStore(NamingScheme namingScheme,
javax.servlet.http.HttpServletRequest request) |
protected BoundBeanStore |
createSessionBeanStore(NamingScheme namingScheme,
javax.servlet.http.HttpSession session) |
protected String |
getNamingSchemePrefix() |
protected Object |
getRequestAttribute(javax.servlet.http.HttpServletRequest request,
String name)
Retrieve an attribute value from the request
|
protected Object |
getSessionAttribute(javax.servlet.http.HttpServletRequest request,
String name,
boolean create)
Get an attribute value from the session.
|
protected Object |
getSessionAttributeFromSession(javax.servlet.http.HttpSession session,
String name)
Get an attribute value from the session.
|
protected javax.servlet.http.HttpSession |
getSessionFromRequest(javax.servlet.http.HttpServletRequest request,
boolean create) |
protected void |
removeRequestAttribute(javax.servlet.http.HttpServletRequest request,
String name)
Remove an attribute from the request.
|
protected void |
setRequestAttribute(javax.servlet.http.HttpServletRequest request,
String name,
Object value)
Set an attribute in the request.
|
protected void |
setSessionAttribute(javax.servlet.http.HttpServletRequest request,
String name,
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, setParameterName
cleanup, getBeanStore, setBeanStore
isActive, isValid, setActive
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate, activate, generateConversationId, getConcurrentAccessTimeout, getConversation, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, invalidate, setConcurrentAccessTimeout, setDefaultTimeout, setParameterName
public HttpConversationContextImpl(String contextId, BeanIdentifierIndex beanIdentifierIndex)
protected void setSessionAttribute(javax.servlet.http.HttpServletRequest request, String name, Object value, boolean create)
AbstractConversationContext
setSessionAttribute
in class AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession>
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 Object getSessionAttribute(javax.servlet.http.HttpServletRequest request, String name, boolean create)
AbstractConversationContext
getSessionAttribute
in class AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession>
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(javax.servlet.http.HttpServletRequest request, String name)
AbstractConversationContext
removeRequestAttribute
in class AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession>
request
- the request to remove the attribute fromname
- the name of the attributeprotected void setRequestAttribute(javax.servlet.http.HttpServletRequest request, String name, Object value)
AbstractConversationContext
setRequestAttribute
in class AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession>
request
- the request to set the attribute fromname
- the name of the attributevalue
- the value of the attributeprotected Object getRequestAttribute(javax.servlet.http.HttpServletRequest request, String name)
AbstractConversationContext
getRequestAttribute
in class AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession>
request
- the request to get the attribute fromname
- the name of the attribute to getprotected BoundBeanStore createRequestBeanStore(NamingScheme namingScheme, javax.servlet.http.HttpServletRequest request)
createRequestBeanStore
in class AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession>
protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, javax.servlet.http.HttpSession session)
createSessionBeanStore
in class AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession>
protected Object getSessionAttributeFromSession(javax.servlet.http.HttpSession session, String name)
AbstractConversationContext
getSessionAttributeFromSession
in class AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession>
session
- the session to get the session attribute fromname
- the name of the attributeprotected javax.servlet.http.HttpSession getSessionFromRequest(javax.servlet.http.HttpServletRequest request, boolean create)
getSessionFromRequest
in class AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession>
protected String getNamingSchemePrefix()
getNamingSchemePrefix
in class AbstractConversationContext<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession>
Copyright © 2016. All rights reserved.