public class ShaleWebContext
extends org.apache.commons.chain.web.servlet.ServletWebContext
Commons Chain Context
implementation for Shale.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ShaleWebContext(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Construct a new context instance with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
javax.faces.context.FacesContext |
getFacesContext()
Return the
FacesContext for the current request, if any;
otherwise, return null . |
void |
setFacesContext(javax.faces.context.FacesContext facesContext)
Set the
FacesContext for the current request. |
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Set the
HttpServletRequest that will be passed on to the
remainder of the filter chain. |
void |
setResponse(javax.servlet.http.HttpServletResponse response)
Set the
HttpServletResponse that will be passed on to the
remainder of the filter chain. |
getApplicationScope, getContext, getCookies, getHeader, getHeaderValues, getInitParam, getParam, getParamValues, getRequest, getRequestScope, getResponse, getSessionScope, initialize, release
clear, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, values
clone, containsKey, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsKey, equals, hashCode, size
public ShaleWebContext(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Construct a new context instance with the specified parameters.
context
- ServletContext
for this applicationrequest
- HttpServetRewquest
for this requestresponse
- HttpServletResponse
for this requestpublic javax.faces.context.FacesContext getFacesContext()
Return the FacesContext
for the current request, if any;
otherwise, return null
.
public void setFacesContext(javax.faces.context.FacesContext facesContext)
Set the FacesContext
for the current request. This
method should only be called by the framework, once it is determined
that this is actually a JSF request.
facesContext
- The FacesContext
for this requestpublic void setRequest(javax.servlet.http.HttpServletRequest request)
Set the HttpServletRequest
that will be passed on to the
remainder of the filter chain. If this is different from the request
originally used to create this context, it must be an implementation of
HttpServletRequestWrapper
that wraps the original request.
NOTE - Setting ths property is only useful if it occurs in the preprocessing portion of the chain, before the filter chain has been invoked.
request
- The request or request wrapper to pass onpublic void setResponse(javax.servlet.http.HttpServletResponse response)
Set the HttpServletResponse
that will be passed on to the
remainder of the filter chain. If this is different from the response
originally used to create this context, it must be an implementation of
HttpServletResponseWrapper
that wraps the original request.
NOTE - Setting ths property is only useful if it occurs in the preprocessing portion of the chain, before the filter chain has been invoked.
response
- The response or response wrapper to pass onCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.