// --------- /Content Processing --------- //
// --------- WebHandler Processing --------- //
WebActionResponse processWebAction(String actionName, RequestContext rc) {
WebActionHandlerRef webActionRef = webObjectRegistry.getWebActionHandlerRef(actionName);
if (webActionRef == null) {
throw new SnowException(Error.NO_WEB_ACTION, "WebAction", actionName);
}
// --------- Invoke Method --------- //
boolean invokeWebAction = true;
Object result = null;
try {
WebHandlerContext handlerContext = new WebHandlerContext(WebHandlerType.action,webActionRef.getHandlerObject(),webActionRef.getHandlerMethod());
if (webHandlerInterceptor != null) {
invokeWebAction = webHandlerInterceptor.beforeWebHandler(handlerContext,rc);
}
if (invokeWebAction) {
result = webActionRef.invoke(rc);
}
if (invokeWebAction && webHandlerInterceptor != null) {
webHandlerInterceptor.afterWebHandler(handlerContext, rc);
}