|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shale.remoting.impl.FilteringProcessor
org.apache.shale.remoting.impl.MethodBindingProcessor
public class MethodBindingProcessor
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 Summary | |
|---|---|
MethodBindingProcessor()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.shale.remoting.impl.FilteringProcessor |
|---|
accept, getExcludes, getIncludes, setIncludes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodBindingProcessor()
| Method Detail |
|---|
public void setExcludes(String excludes)
Force our default excludes list to be included.
setExcludes in class FilteringProcessorexcludes - Application specified excludes list
public 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 occurs
NullPointerException - if viewId is null
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.
The default algorithm performs this conversion as follows:
context - FacesContext for the current requestresourceId - Resource identifier to be mapped
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||