public class HttpSessionContextImpl extends AbstractBoundContext<HttpServletRequest> implements HttpSessionContext
Modifier and Type | Field and Description |
---|---|
static SimpleNamingScheme |
NAMING_SCHEME |
Constructor and Description |
---|
HttpSessionContextImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
associate(HttpServletRequest request)
Associate the context with the storage (for this thread).
|
boolean |
destroy(HttpSession session)
Destroy the session and all conversations stored in the session.
|
protected Conversation |
getConversation() |
protected HttpConversationContext |
getConversationContext() |
Class<? extends Annotation> |
getScope()
Get the scope type of the context object.
|
activate, cleanup, deactivate, dissociate, getBeanStore, setBeanStore
invalidate, isActive, isValid, setActive
destroy, get, get, getContextual, getId, getServiceRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invalidate, isValid
dissociate
activate, deactivate
public static final SimpleNamingScheme NAMING_SCHEME
public boolean associate(HttpServletRequest request)
BoundContext
BoundContext.associate(Object)
has been called, further calls
to BoundContext.associate(Object)
will be ignored, until the context has been subsequently BoundContext.dissociate(Object)
from
the storage.associate
in interface BoundContext<HttpServletRequest>
request
- the external storagepublic boolean destroy(HttpSession session)
HttpSessionContext
Destroy the session and all conversations stored in the session.
If the context is not currently associated with a HttpServletRequest
, then the context will be associated with
the specified HttpSession
(for this thread), activated, destroyed, and then deactivated.
If the context is already associated with a HttpServletRequest
then this call will detach the context from the
underlying Http Session, and mark the context for destruction when the request is destroyed.
destroy
in interface AlterableContext
destroy
in interface HttpSessionContext
session
- the HttpSession
in which to store the bean instancespublic Class<? extends Annotation> getScope()
Context
protected HttpConversationContext getConversationContext()
protected Conversation getConversation()
Copyright © 2013 Seam Framework. All Rights Reserved.