public class HttpConversationContextImpl extends AbstractConversationContext<HttpServletRequest,HttpSession> implements HttpConversationContext
CONVERSATIONS_ATTRIBUTE_NAME, DESTRUCTION_QUEUE_ATTRIBUTE_NAME| Constructor and Description |
|---|
HttpConversationContextImpl(String contextId,
ServiceRegistry services) |
| Modifier and Type | Method and Description |
|---|---|
protected BoundBeanStore |
createRequestBeanStore(NamingScheme namingScheme,
HttpServletRequest request) |
protected BoundBeanStore |
createSessionBeanStore(NamingScheme namingScheme,
HttpSession session) |
protected String |
getNamingSchemePrefix() |
protected Object |
getRequestAttribute(HttpServletRequest request,
String name)
Retrieve an attribute value from the request
|
protected Object |
getSessionAttribute(HttpServletRequest request,
String name,
boolean create)
Get an attribute value from the session.
|
protected Object |
getSessionAttributeFromSession(HttpSession session,
String name)
Get an attribute value from the session.
|
protected Iterator<String> |
getSessionAttributeNames(HttpSession session) |
protected HttpSession |
getSessionFromRequest(HttpServletRequest request,
boolean create) |
protected void |
removeRequestAttribute(HttpServletRequest request,
String name)
Remove an attribute from the request.
|
protected void |
setRequestAttribute(HttpServletRequest request,
String name,
Object value)
Set an attribute in the request.
|
protected void |
setSessionAttribute(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, getConversationIdGenerator, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, getRequest, getScope, initialize, invalidate, isAssociated, sessionCreated, setConcurrentAccessTimeout, setDefaultTimeout, setParameterNamecleanup, getBeanStore, setBeanStoreisActive, isValid, removeState, setActivedestroy, destroy, get, get, getContextual, getId, getServiceRegistry, checkContextInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroyassociate, dissociateactivate, activate, generateConversationId, getConcurrentAccessTimeout, getConversation, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, invalidate, setConcurrentAccessTimeout, setDefaultTimeout, setParameterNamedeactivatepublic HttpConversationContextImpl(String contextId, ServiceRegistry services)
protected void setSessionAttribute(HttpServletRequest request,
String name,
Object value,
boolean create)
AbstractConversationContextsetSessionAttribute in class AbstractConversationContext<HttpServletRequest,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(HttpServletRequest request, String name, boolean create)
AbstractConversationContextgetSessionAttribute in class AbstractConversationContext<HttpServletRequest,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(HttpServletRequest request,
String name)
AbstractConversationContextremoveRequestAttribute in class AbstractConversationContext<HttpServletRequest,HttpSession>request - the request to remove the attribute fromname - the name of the attributeprotected void setRequestAttribute(HttpServletRequest request,
String name,
Object value)
AbstractConversationContextsetRequestAttribute in class AbstractConversationContext<HttpServletRequest,HttpSession>request - the request to set the attribute fromname - the name of the attributevalue - the value of the attributeprotected Object getRequestAttribute(HttpServletRequest request, String name)
AbstractConversationContextgetRequestAttribute in class AbstractConversationContext<HttpServletRequest,HttpSession>request - the request to get the attribute fromname - the name of the attribute to getprotected BoundBeanStore createRequestBeanStore(NamingScheme namingScheme, HttpServletRequest request)
createRequestBeanStore in class AbstractConversationContext<HttpServletRequest,HttpSession>protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, HttpSession session)
createSessionBeanStore in class AbstractConversationContext<HttpServletRequest,HttpSession>protected Object getSessionAttributeFromSession(HttpSession session, String name)
AbstractConversationContextgetSessionAttributeFromSession in class AbstractConversationContext<HttpServletRequest,HttpSession>session - the session to get the session attribute fromname - the name of the attributeprotected HttpSession getSessionFromRequest(HttpServletRequest request,
boolean create)
getSessionFromRequest in class AbstractConversationContext<HttpServletRequest,HttpSession>protected String getNamingSchemePrefix()
getNamingSchemePrefix in class AbstractConversationContext<HttpServletRequest,HttpSession>protected Iterator<String> getSessionAttributeNames(HttpSession session)
getSessionAttributeNames in class AbstractConversationContext<HttpServletRequest,HttpSession>Copyright © 2016. All Rights Reserved.