org.jboss.weld.context.bound
Class BoundConversationContextImpl

java.lang.Object
  extended by org.jboss.weld.context.AbstractContext
      extended by org.jboss.weld.context.AbstractManagedContext
          extended by org.jboss.weld.context.AbstractBoundContext<R>
              extended by org.jboss.weld.context.AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>
                  extended by org.jboss.weld.context.bound.BoundConversationContextImpl
All Implemented Interfaces:
javax.enterprise.context.spi.Context, org.jboss.weld.context.bound.BoundConversationContext, org.jboss.weld.context.BoundContext<org.jboss.weld.context.bound.BoundRequest>, org.jboss.weld.context.ConversationContext, org.jboss.weld.context.ManagedContext

public class BoundConversationContextImpl
extends AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>
implements org.jboss.weld.context.bound.BoundConversationContext


Field Summary
 
Fields inherited from class org.jboss.weld.context.AbstractConversationContext
CONVERSATIONS_ATTRIBUTE_NAME
 
Constructor Summary
BoundConversationContextImpl()
           
 
Method Summary
protected  BoundBeanStore createRequestBeanStore(NamingScheme namingScheme, org.jboss.weld.context.bound.BoundRequest request)
           
protected  BoundBeanStore createSessionBeanStore(NamingScheme namingScheme, Map<String,Object> session)
           
protected  Object getRequestAttribute(org.jboss.weld.context.bound.BoundRequest request, String name)
          Retrieve an attribute value from the request
protected  Object getSessionAttribute(org.jboss.weld.context.bound.BoundRequest request, String name, boolean create)
          Get an attribute value from the session.
protected  Object getSessionAttributeFromSession(Map<String,Object> session, String name)
          Get an attribute value from the session.
protected  Map<String,Object> getSessionFromRequest(org.jboss.weld.context.bound.BoundRequest request, boolean create)
           
protected  void removeRequestAttribute(org.jboss.weld.context.bound.BoundRequest request, String name)
          Remove an attribute from the request.
protected  void setRequestAttribute(org.jboss.weld.context.bound.BoundRequest request, String name, Object value)
          Set an attribute in the request.
protected  void setSessionAttribute(org.jboss.weld.context.bound.BoundRequest request, String name, Object value, boolean create)
          Set an attribute in the session.
 
Methods inherited from class org.jboss.weld.context.AbstractConversationContext
activate, activate, associate, associateRequest, associateRequest, deactivate, destroy, destroyConversation, dissociate, generateConversationId, getConcurrentAccessTimeout, getConversation, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, getScope, invalidate, setConcurrentAccessTimeout, setDefaultTimeout, setParameterName
 
Methods inherited from class org.jboss.weld.context.AbstractBoundContext
cleanup, getBeanStore, setBeanStore
 
Methods inherited from class org.jboss.weld.context.AbstractManagedContext
isActive, setActive
 
Methods inherited from class org.jboss.weld.context.AbstractContext
destroy, get, get, getContextual, getId, getServiceRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.context.bound.BoundConversationContext
destroy
 
Methods inherited from interface org.jboss.weld.context.ConversationContext
activate, activate, generateConversationId, getConcurrentAccessTimeout, getConversation, getConversations, getCurrentConversation, getDefaultTimeout, getParameterName, invalidate, setConcurrentAccessTimeout, setDefaultTimeout, setParameterName
 
Methods inherited from interface org.jboss.weld.context.ManagedContext
deactivate
 
Methods inherited from interface javax.enterprise.context.spi.Context
get, get, getScope, isActive
 
Methods inherited from interface org.jboss.weld.context.BoundContext
associate, dissociate
 

Constructor Detail

BoundConversationContextImpl

public BoundConversationContextImpl()
Method Detail

setSessionAttribute

protected void setSessionAttribute(org.jboss.weld.context.bound.BoundRequest request,
                                   String name,
                                   Object value,
                                   boolean create)
Description copied from class: AbstractConversationContext
Set an attribute in the session.

Specified by:
setSessionAttribute in class AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>
Parameters:
request - the request to set the session attribute in
name - the name of the attribute
value - the value of the attribute
create - if false, the attribute will only be set if the session already exists, other wise it will always be set

getSessionAttribute

protected Object getSessionAttribute(org.jboss.weld.context.bound.BoundRequest request,
                                     String name,
                                     boolean create)
Description copied from class: AbstractConversationContext
Get an attribute value from the session.

Specified by:
getSessionAttribute in class AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>
Parameters:
request - the request to get the session attribute from
name - the name of the attribute
create - if false, the attribute will only be retrieved if the session already exists, other wise it will always be retrieved
Returns:
attribute

removeRequestAttribute

protected void removeRequestAttribute(org.jboss.weld.context.bound.BoundRequest request,
                                      String name)
Description copied from class: AbstractConversationContext
Remove an attribute from the request.

Specified by:
removeRequestAttribute in class AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>
Parameters:
request - the request to remove the attribute from
name - the name of the attribute

setRequestAttribute

protected void setRequestAttribute(org.jboss.weld.context.bound.BoundRequest request,
                                   String name,
                                   Object value)
Description copied from class: AbstractConversationContext
Set an attribute in the request.

Specified by:
setRequestAttribute in class AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>
Parameters:
request - the request to set the attribute from
name - the name of the attribute
value - the value of the attribute

getRequestAttribute

protected Object getRequestAttribute(org.jboss.weld.context.bound.BoundRequest request,
                                     String name)
Description copied from class: AbstractConversationContext
Retrieve an attribute value from the request

Specified by:
getRequestAttribute in class AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>
Parameters:
request - the request to get the attribute from
name - the name of the attribute to get
Returns:
the value of the attribute

createRequestBeanStore

protected BoundBeanStore createRequestBeanStore(NamingScheme namingScheme,
                                                org.jboss.weld.context.bound.BoundRequest request)
Specified by:
createRequestBeanStore in class AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>

createSessionBeanStore

protected BoundBeanStore createSessionBeanStore(NamingScheme namingScheme,
                                                Map<String,Object> session)
Specified by:
createSessionBeanStore in class AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>

getSessionAttributeFromSession

protected Object getSessionAttributeFromSession(Map<String,Object> session,
                                                String name)
Description copied from class: AbstractConversationContext
Get an attribute value from the session.

Specified by:
getSessionAttributeFromSession in class AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>
Parameters:
session - the session to get the session attribute from
name - the name of the attribute
Returns:
attribute

getSessionFromRequest

protected Map<String,Object> getSessionFromRequest(org.jboss.weld.context.bound.BoundRequest request,
                                                   boolean create)
Specified by:
getSessionFromRequest in class AbstractConversationContext<org.jboss.weld.context.bound.BoundRequest,Map<String,Object>>


Copyright © 2013 Seam Framework. All Rights Reserved.