* Rename req.actionProcessor to req.actionHandler as suggested by Juerg Lehni on helma-dev.
This commit is contained in:
parent
58b7de53c4
commit
ad613b629a
3 changed files with 19 additions and 19 deletions
|
@ -203,22 +203,22 @@ public class RequestBean implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* The action processor allows the onRequest() method to set the function object
|
||||
* The action handler allows the onRequest() method to set the function object
|
||||
* to be invoked for processing the request, overriding the action resolved
|
||||
* from the request path.
|
||||
* @return the action processor
|
||||
* @return the action handler
|
||||
*/
|
||||
public Object getActionProcessor() {
|
||||
return req.getActionProcessor();
|
||||
public Object getActionHandler() {
|
||||
return req.getActionHandler();
|
||||
}
|
||||
|
||||
/**
|
||||
* The action processor allows the onRequest() method to set the function object
|
||||
* The action handler allows the onRequest() method to set the function object
|
||||
* to be invoked for processing the request, overriding the action resolved
|
||||
* from the request path.
|
||||
* @param processor the action processor
|
||||
* @param handler the action handler
|
||||
*/
|
||||
public void setActionProcessor(Object processor) {
|
||||
req.setActionProcessor(processor);
|
||||
public void setActionHandler(Object handler) {
|
||||
req.setActionHandler(handler);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ public class RequestTrans implements Serializable {
|
|||
|
||||
// the name of the action being invoked
|
||||
private String action;
|
||||
private Object actionProcessor = null;
|
||||
private Object actionHandler = null;
|
||||
private String httpUsername;
|
||||
private String httpPassword;
|
||||
|
||||
|
@ -458,23 +458,23 @@ public class RequestTrans implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the request's action processor. The action processor allows the
|
||||
* Get the request's action handler. The action handler allows the
|
||||
* onRequest() method to set the function object to be invoked for processing
|
||||
* the request, overriding the action resolved from the request path.
|
||||
* @return the action processor
|
||||
* @return the action handler function
|
||||
*/
|
||||
public Object getActionProcessor() {
|
||||
return actionProcessor;
|
||||
public Object getActionHandler() {
|
||||
return actionHandler;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the request's action processor. The action processor allows the
|
||||
* Set the request's action handler. The action handler allows the
|
||||
* onRequest() method to set the function object to be invoked for processing
|
||||
* the request, overriding the action resolved from the request path.
|
||||
* @param processor the action processor
|
||||
* @param handler the action handler
|
||||
*/
|
||||
public void setActionProcessor(Object processor) {
|
||||
this.actionProcessor = processor;
|
||||
public void setActionHandler(Object handler) {
|
||||
this.actionHandler = handler;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -376,8 +376,8 @@ public final class RequestEvaluator implements Runnable {
|
|||
// reset skin recursion detection counter
|
||||
skinDepth = 0;
|
||||
|
||||
Object actionProcessor = req.getActionProcessor() != null ?
|
||||
req.getActionProcessor() : action;
|
||||
Object actionProcessor = req.getActionHandler() != null ?
|
||||
req.getActionHandler() : action;
|
||||
|
||||
// do the actual action invocation
|
||||
if (req.isXmlRpc()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue