public class HttpSessionContextImpl extends AbstractBoundContext<HttpServletRequest> implements HttpSessionContext
| 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 HttpConversationContext |
getConversationContext() |
Class<? extends Annotation> |
getScope()
Get the scope type of the context object.
|
activate, cleanup, deactivate, dissociate, getBeanStore, setBeanStoreinvalidate, isActive, setActivedestroy, get, get, getContextual, getId, getServiceRegistryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvalidatedissociateactivate, deactivatepublic boolean associate(HttpServletRequest request)
BoundContextBoundContext.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)
HttpSessionContextDestroy 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 HttpSessionContextsession - the HttpSession in which to store the bean
instancespublic Class<? extends Annotation> getScope()
Contextprotected HttpConversationContext getConversationContext()
Copyright © 2013 Seam Framework. All Rights Reserved.