FilterSecurityInterceptor now only executes once per request (improves performance with SiteMesh). Suggested by Sanjiv Jivan.

This commit is contained in:
Ben Alex
2005-02-11 05:49:41 +00:00
parent cbe53e21b9
commit 6370fadfdc
3 changed files with 25 additions and 8 deletions

View File

@@ -49,6 +49,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
//~ Instance fields ========================================================
private HttpSession session = new MockHttpSession();
private Map attribMap = new HashMap();
private Map headersMap = new HashMap();
private Map paramMap = new HashMap();
private Principal principal;
@@ -86,11 +87,11 @@ public class MockHttpServletRequest implements HttpServletRequest {
//~ Methods ================================================================
public void setAttribute(String arg0, Object arg1) {
throw new UnsupportedOperationException("mock method not implemented");
this.attribMap.put(arg0, arg1);
}
public Object getAttribute(String arg0) {
throw new UnsupportedOperationException("mock method not implemented");
return this.attribMap.get(arg0);
}
public Enumeration getAttributeNames() {