|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpSessionContext
A session context which can be bound to the HttpServletRequest
. The
context is automatically attached to the map on activation, and detached when
invalidate()
is called.
This context is not thread safe, and provides no thread safety for the underlying map.
Method Summary | |
---|---|
boolean |
destroy(javax.servlet.http.HttpSession session)
Destroy the session and all conversations stored in the session. |
void |
invalidate()
Mark the Session Context for destruction; the Session Context will be detached from the underling Http Session, and instances marked for destruction when the Http Request is destroyed. |
Methods inherited from interface org.jboss.weld.context.BoundContext |
---|
associate, dissociate |
Methods inherited from interface org.jboss.weld.context.ManagedContext |
---|
activate, deactivate |
Methods inherited from interface javax.enterprise.context.spi.Context |
---|
get, get, getScope, isActive |
Method Detail |
---|
void invalidate()
Mark the Session Context for destruction; the Session Context will be detached from the underling Http Session, and instances marked for destruction when the Http Request is destroyed.
invalidate
in interface ManagedContext
boolean destroy(javax.servlet.http.HttpSession session)
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.
session
- the HttpSession
in which to store the bean
instances
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |