public class SessionContext extends SimpleContext
A Faces Session Context.
Since the "session map" is obtained from a
FacesContext object using the environment agnostic
getExternalContext(), this Context
will be useful in Servlet as well as Portlet environments.
| Constructor and Description |
|---|
SessionContext(javax.faces.context.FacesContext fc)
Constructor.
|
SessionContext(javax.faces.context.FacesContext fc,
Context parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String name)
Get the value of the given variable in this Context.
|
boolean |
has(String name)
Does the given variable exist in this Context.
|
public SessionContext(javax.faces.context.FacesContext fc)
fc - The current FacesContextpublic SessionContext(javax.faces.context.FacesContext fc,
Context parent)
fc - The current FacesContextparent - A parent Context, can be nullpublic Object get(String name)
get in interface Contextget in class SimpleContextname - The name of the variableContext.get(java.lang.String)public boolean has(String name)
has in interface Contexthas in class SimpleContextname - The name of the variableContext.has(java.lang.String)Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.