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
|
||||
*/
|
||||
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) {
|
||||
return isGranted(role);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SecurityContextHolderAwareRequestWrapper[ " + getRequest() + "]";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue