Beispiel #1
0
 private void clearParameterCache(Parameter param, Action action) {
   String rules = param.getMockJsRules();
   if (rules != null && rules.contains("${") && rules.contains("}")) {
     action.setDisableCache(1);
     return; // over
   }
   Set<Parameter> children = param.getParameterList();
   if (children != null && children.size() != 0) {
     for (Parameter child : children) {
       clearParameterCache(child, action);
     }
   }
 }
Beispiel #2
0
 private void updateActionCache(Action action) {
   action.setDisableCache(0);
   for (Parameter param : action.getResponseParameterList()) {
     clearParameterCache(param, action);
   }
 }