mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 15:22:15 +00:00
SEC-1310: Added toString() implementations to Pre and PostInvocationExpressionAttribute classes.
This commit is contained in:
parent
4582afa739
commit
1df82654e3
@ -22,4 +22,14 @@ class PostInvocationExpressionAttribute extends AbstractExpressionBasedMethodCon
|
|||||||
throws ParseException {
|
throws ParseException {
|
||||||
super(filterExpression, authorizeExpression);
|
super(filterExpression, authorizeExpression);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
Expression authorize = getAuthorizeExpression();
|
||||||
|
Expression filter = getFilterExpression();
|
||||||
|
sb.append("[authorize: '").append(authorize == null ? "null" : authorize.getExpressionString());
|
||||||
|
sb.append("', filter: '").append(filter == null ? "null" : filter.getExpressionString()).append("']");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,4 +37,15 @@ class PreInvocationExpressionAttribute extends AbstractExpressionBasedMethodConf
|
|||||||
String getFilterTarget() {
|
String getFilterTarget() {
|
||||||
return filterTarget;
|
return filterTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
Expression authorize = getAuthorizeExpression();
|
||||||
|
Expression filter = getFilterExpression();
|
||||||
|
sb.append("[authorize: '").append(authorize == null ? "null" : authorize.getExpressionString());
|
||||||
|
sb.append("', filter: '").append(filter == null ? "null" : filter.getExpressionString());
|
||||||
|
sb.append("', filterTarget: '").append(filterTarget).append("']");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user