Class RequestContext
- java.lang.Object
-
- org.exoplatform.container.context.AbstractContext<K>
-
- org.exoplatform.container.context.UnSharedContext<javax.servlet.ServletRequest>
-
- org.exoplatform.container.context.RequestContext
-
- All Implemented Interfaces:
javax.enterprise.context.spi.Context,ThreadContextHolder,AdvancedContext<javax.servlet.ServletRequest>
public class RequestContext extends UnSharedContext<javax.servlet.ServletRequest>
The context that represents the request scope.- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.exoplatform.container.context.AbstractContext
AbstractContext.ThreadLocalData
-
-
Field Summary
-
Fields inherited from interface org.exoplatform.container.component.ThreadContextHolder
MANAGE_THREAD_LOCAL
-
-
Constructor Summary
Constructors Constructor Description RequestContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CreationContextStoragecreateStorage(javax.servlet.ServletRequest key)Creates aCreationContextStorageinstance from the given keyClass<? extends Annotation>getScope()-
Methods inherited from class org.exoplatform.container.context.UnSharedContext
deactivate, getLock, isSharable, unregister
-
Methods inherited from class org.exoplatform.container.context.AbstractContext
activate, destroy, destroy, destroy, get, get, getFromCache, getId, getInstance, getStorage, getThreadContext, isActive, putInCache, register, setStorage
-
-
-
-
Method Detail
-
getScope
public Class<? extends Annotation> getScope()
-
createStorage
protected CreationContextStorage createStorage(javax.servlet.ServletRequest key)
Creates aCreationContextStorageinstance from the given key- Specified by:
createStoragein classAbstractContext<javax.servlet.ServletRequest>- Parameters:
key- the key to use to create theCreationContextStorage- Returns:
- the
CreationContextStoragecorresponding to the given key
-
-