FilterChainProxy now supports replacement of ServletRequest and ServetResponse by Filter beans.

This commit is contained in:
Ben Alex 2005-03-11 01:41:43 +00:00
parent 5c86b97f37
commit 4763f953d3
2 changed files with 5 additions and 4 deletions

View File

@ -289,7 +289,7 @@ public class FilterChainProxy implements Filter, InitializingBean,
private VirtualFilterChain() {} private VirtualFilterChain() {}
public void doFilter(ServletRequest arg0, ServletResponse arg1) public void doFilter(ServletRequest request, ServletResponse response)
throws IOException, ServletException { throws IOException, ServletException {
if (currentPosition == additionalFilters.length) { if (currentPosition == additionalFilters.length) {
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
@ -297,7 +297,7 @@ public class FilterChainProxy implements Filter, InitializingBean,
+ " reached end of additional filter chain; proceeding with original chain"); + " reached end of additional filter chain; proceeding with original chain");
} }
fi.getChain().doFilter(fi.getRequest(), fi.getResponse()); fi.getChain().doFilter(request, response);
} else { } else {
currentPosition++; currentPosition++;
@ -308,8 +308,8 @@ public class FilterChainProxy implements Filter, InitializingBean,
+ additionalFilters[currentPosition - 1] + "'"); + additionalFilters[currentPosition - 1] + "'");
} }
additionalFilters[currentPosition - 1].doFilter(fi.getRequest(), additionalFilters[currentPosition - 1].doFilter(request,
fi.getResponse(), this); response, this);
} }
} }
} }

View File

@ -27,6 +27,7 @@
<body> <body>
<release version="0.8.1" date="In CVS"> <release version="0.8.1" date="In CVS">
<action dev="benalex" type="fix">SecurityEnforcementFilter caused NullPointerException when anonymous authentication used with BasicProcessingFilterEntryPoint</action> <action dev="benalex" type="fix">SecurityEnforcementFilter caused NullPointerException when anonymous authentication used with BasicProcessingFilterEntryPoint</action>
<action dev="benalex" type="fix">FilterChainProxy now supports replacement of ServletRequest and ServetResponse by Filter beans</action>
<action dev="benalex" type="update">ContextHolderAwareRequestWrapper methods returns null if user is anonymous</action> <action dev="benalex" type="update">ContextHolderAwareRequestWrapper methods returns null if user is anonymous</action>
</release> </release>
<release version="0.8.0" date="2005-03-03"> <release version="0.8.0" date="2005-03-03">