* Returns the action value for the specified method. Default implementation looks for the {@link Action} annotation
* value.
*/
@Override
protected URI getActionForMethod(Method method) {
Action action = method.getAnnotation(Action.class);
if (action != null && StringUtils.hasText(action.value())) {
try {
return new URI(action.value());
}
catch (URISyntaxException e) {
throw new IllegalArgumentException(
"Invalid Action annotation [" + action.value() + "] on [" + method + "]");
}
}
return null;
}