public class MethodBindingProcessor extends FilteringProcessor
Implementation of Processor which maps a resource identifier
to a method binding expression, then delegates the creation of the current
response to the execution of that method. The precise details of how a
resource identifier gets mapped are encapsulated in the mapResourceId
method, which may be specialized as desired in a subclass.
| Constructor and Description |
|---|
MethodBindingProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.faces.el.MethodBinding |
mapResourceId(javax.faces.context.FacesContext context,
String resourceId)
Map the specified resource identifier into a corresponding
MethodBinding which identifies the method which will be
called to produce this response. |
void |
process(javax.faces.context.FacesContext context,
String resourceId)
Convert the specified resource identifier into a method binding
expression, and delegate creation of the response to a call to the
identified method.
|
void |
setExcludes(String excludes)
Force our default excludes list to be included.
|
accept, getExcludes, getIncludes, setIncludespublic void setExcludes(String excludes)
Force our default excludes list to be included.
setExcludes in class FilteringProcessorexcludes - Application specified excludes listpublic void process(javax.faces.context.FacesContext context,
String resourceId)
throws IOException
Convert the specified resource identifier into a method binding
expression, and delegate creation of the response to a call to the
identified method. Call FacesContext.responseComplete()
to tell JavaServer Faces that the entire response has already been
created.
context - FacesContext for the current requestresourceId - Resource identifier used to select the appropriate response
(this will generally be a context relative path starting with "/")IllegalArgumentException - if the view identifier is not
well formed (starting with a '/' character)IOException - if an input/output error occursNullPointerException - if viewId is nullprotected javax.faces.el.MethodBinding mapResourceId(javax.faces.context.FacesContext context,
String resourceId)
Map the specified resource identifier into a corresponding
MethodBinding which identifies the method which will be
called to produce this response.
The default algorithm performs this conversion as follows:
context - FacesContext for the current requestresourceId - Resource identifier to be mappedCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.