1 16 package org.springframework.webflow.action; 17 18 import org.springframework.webflow.action.MultiAction.MethodResolver; 19 import org.springframework.webflow.execution.RequestContext; 20 21 35 public class DefaultMultiActionMethodResolver implements MethodResolver { 36 37 public String resolveMethod(RequestContext context) { 38 String method = context.getAttributes().getString("method"); 41 if (method == null) { 42 if (context.getCurrentState() != null) { 43 method = context.getCurrentState().getId(); 45 } 46 else { 47 throw new IllegalStateException ("Unable to resolve action method; no 'method' context attribute set"); 48 } 49 } 50 return method; 51 } 52 } | Popular Tags |