mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-07 11:12:14 +00:00
Improved toString methods on request wrappers.
This commit is contained in:
parent
85807fdfd0
commit
737a9d1825
@ -31,4 +31,9 @@ public abstract class FirewalledRequest extends HttpServletRequestWrapper {
|
|||||||
* for the security infrastructure, while still maintaining the
|
* for the security infrastructure, while still maintaining the
|
||||||
*/
|
*/
|
||||||
public abstract void reset();
|
public abstract void reset();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "FirewalledRequest[ " + getRequest() + "]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -159,4 +159,9 @@ public class SecurityContextHolderAwareRequestWrapper extends HttpServletRequest
|
|||||||
public boolean isUserInRole(String role) {
|
public boolean isUserInRole(String role) {
|
||||||
return isGranted(role);
|
return isGranted(role);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "SecurityContextHolderAwareRequestWrapper[ " + getRequest() + "]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user