Skip to content

Commit

Permalink
add GlobalAllowedMethods getter to PackageConfig and modified getActi…
Browse files Browse the repository at this point in the history
…onConfig method in ConventionUnknownHandler to reference it
  • Loading branch information
justinjmiller committed Jun 10, 2016
1 parent 0d92fd0 commit dd3b80f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,13 @@ public List<ExceptionMappingConfig> getGlobalExceptionMappingConfigs() {
return globalExceptionMappingConfigs;
}

/**
* gets the GlobalAllowedMethods local to this package
*
* @return a Set of method names allowed to be executed if strict method invocation is enabled
*/
public Set<String> getGlobalAllowedMethods() { return globalAllowedMethods; }

public boolean isStrictMethodInvocation() {
return strictMethodInvocation;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ protected ActionConfig buildActionConfig(String path, ResultTypeConfig resultTyp
return new ActionConfig.Builder(defaultParentPackageName, "execute", ActionSupport.class.getName()).
addInterceptors(interceptors).
addResultConfigs(results).
addAllowedMethod(allowedMethods).
addAllowedMethod(pkg.getGlobalAllowedMethods()).
build();
}

Expand Down

0 comments on commit dd3b80f

Please sign in to comment.