public class FacesWebContext extends WebContext
Concrete implementation of WebContext
suitable for use in
JavaServer Faces apps. The abstract methods are mapped to the appropriate
collections of the underlying FacesContext
instance
that is passed to the constructor (or the initialize method).
Modifier and Type | Field and Description |
---|---|
private javax.faces.context.FacesContext |
context
The
FacesContext instance for the request represented
by this WebContext . |
Constructor and Description |
---|
FacesWebContext()
Construct an uninitialized
FacesWebContext instance. |
FacesWebContext(javax.faces.context.FacesContext context)
Construct a
FacesWebContext instance that is initialized
with the specified JavaServer Faces API objects. |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getApplicationScope()
See the
WebContext 's Javadoc. |
javax.faces.context.FacesContext |
getContext()
Return the
FacesContext instance for the request
associated with this FacesWebContext . |
java.util.Map |
getCookies()
See the
WebContext 's Javadoc. |
java.util.Map |
getHeader()
See the
WebContext 's Javadoc. |
java.util.Map |
getHeaderValues()
See the
WebContext 's Javadoc. |
java.util.Map |
getInitParam()
See the
WebContext 's Javadoc. |
java.util.Map |
getParam()
See the
WebContext 's Javadoc. |
java.util.Map |
getParamValues()
See the
WebContext 's Javadoc. |
java.util.Map |
getRequestScope()
See the
WebContext 's Javadoc. |
java.util.Map |
getSessionScope()
See the
WebContext 's Javadoc. |
void |
initialize(javax.faces.context.FacesContext context)
Initialize (or reinitialize) this
FacesWebContext instance
for the specified JavaServer Faces API objects. |
void |
release()
Release references to allocated resources acquired in
initialize() of via subsequent processing. |
clear, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll, size
private javax.faces.context.FacesContext context
The FacesContext
instance for the request represented
by this WebContext
.
public FacesWebContext()
Construct an uninitialized FacesWebContext
instance.
public FacesWebContext(javax.faces.context.FacesContext context)
Construct a FacesWebContext
instance that is initialized
with the specified JavaServer Faces API objects.
context
- The FacesContext
for this requestpublic javax.faces.context.FacesContext getContext()
Return the FacesContext
instance for the request
associated with this FacesWebContext
.
FacesContext
for this requestpublic void initialize(javax.faces.context.FacesContext context)
Initialize (or reinitialize) this FacesWebContext
instance
for the specified JavaServer Faces API objects.
context
- The FacesContext
for this requestpublic void release()
Release references to allocated resources acquired in
initialize()
of via subsequent processing. After this
method is called, subsequent calls to any other method than
initialize()
will return undefined results.
public java.util.Map getApplicationScope()
WebContext
's Javadoc.getApplicationScope
in class WebContext
public java.util.Map getHeader()
WebContext
's Javadoc.getHeader
in class WebContext
public java.util.Map getHeaderValues()
WebContext
's Javadoc.getHeaderValues
in class WebContext
public java.util.Map getInitParam()
WebContext
's Javadoc.getInitParam
in class WebContext
public java.util.Map getParam()
WebContext
's Javadoc.getParam
in class WebContext
public java.util.Map getParamValues()
WebContext
's Javadoc.getParamValues
in class WebContext
public java.util.Map getCookies()
WebContext
's Javadoc.getCookies
in class WebContext
public java.util.Map getRequestScope()
WebContext
's Javadoc.getRequestScope
in class WebContext
public java.util.Map getSessionScope()
WebContext
's Javadoc.getSessionScope
in class WebContext