Improved toString methods on request wrappers.
This commit is contained in:
@@ -31,4 +31,9 @@ public abstract class FirewalledRequest extends HttpServletRequestWrapper {
|
||||
* for the security infrastructure, while still maintaining the
|
||||
*/
|
||||
public abstract void reset();
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "FirewalledRequest[ " + getRequest() + "]";
|
||||
}
|
||||
}
|
||||
|
||||
+5
@@ -159,4 +159,9 @@ public class SecurityContextHolderAwareRequestWrapper extends HttpServletRequest
|
||||
public boolean isUserInRole(String role) {
|
||||
return isGranted(role);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SecurityContextHolderAwareRequestWrapper[ " + getRequest() + "]";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user