Improved toString methods on request wrappers.

This commit is contained in:
Luke Taylor 2011-06-25 22:23:03 +01:00
parent 85807fdfd0
commit 737a9d1825
2 changed files with 10 additions and 0 deletions

View File

@ -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() + "]";
}
} }

View File

@ -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() + "]";
}
} }