|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.seam.core.AbstractMutable
org.jboss.seam.web.Session
@Scope(value=SESSION) @Name(value="org.jboss.seam.web.session") @BypassInterceptors @Startup public class Session
Controls HttpSession invalidation in any servlet or JSF environment. Since Seam keeps internal state in the HttpSession, it is illegal to call HttpSession.invalidate() while Seam contexts are active. Applications using Seam security should call Identity.logout() instead of calling this component directly.
Constructor Summary | |
---|---|
Session()
|
Method Summary | |
---|---|
static Session |
getInstance()
|
static Session |
instance()
|
void |
invalidate()
Schedule HttpSession invalidation at the end of the request. |
boolean |
isInvalid()
Is HttpSession invalidation scheduled for the end of this request? |
boolean |
isInvalidateOnSchemeChange()
Is session invalidation on scheme change enabled? |
boolean |
isInvalidDueToNewScheme(String requestScheme)
Should we invalidate the session due to a change in the request scheme? |
void |
setInvalidateOnSchemeChange(boolean invalidateOnSchemeChange)
Enable or disable session invalidation on scheme change? |
Methods inherited from class org.jboss.seam.core.AbstractMutable |
---|
clearDirty, setDirty, setDirty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Session()
Method Detail |
---|
public boolean isInvalid()
public void invalidate()
public boolean isInvalidDueToNewScheme(String requestScheme)
requestScheme
- the scheme of the current request
public boolean isInvalidateOnSchemeChange()
public void setInvalidateOnSchemeChange(boolean invalidateOnSchemeChange)
public static Session instance()
public static Session getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |