Minor improvements to toString() methods for logging.

This commit is contained in:
Luke Taylor 2008-04-22 22:21:20 +00:00
parent a845a69cb7
commit 599d9fea04
3 changed files with 6 additions and 4 deletions

View File

@ -121,7 +121,7 @@ public class OrderedFilterBeanDefinitionDecorator implements BeanDefinitionDecor
}
public String toString() {
return getClass() + "[ delegate=" + delegate + "; order=" + getOrder() + "]";
return "OrderedFilterDecorator[ delegate=" + delegate + "; order=" + getOrder() + "]";
}
}
}

View File

@ -56,6 +56,6 @@ public abstract class SpringSecurityFilter implements Filter, Ordered {
protected abstract void doFilterHttp(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException;
public String toString() {
return getClass() + "[ order=" + getOrder() + "; ]";
return getClass().getName() + "[ order=" + getOrder() + "; ]";
}
}

View File

@ -12,8 +12,6 @@ import org.apache.commons.logging.LogFactory;
* @version $Id$
*/
public class AntUrlPathMatcher implements UrlMatcher {
private static final Log logger = LogFactory.getLog(AntUrlPathMatcher.class);
private boolean requiresLowerCaseUrl = true;
private PathMatcher pathMatcher = new AntPathMatcher();
@ -48,4 +46,8 @@ public class AntUrlPathMatcher implements UrlMatcher {
public boolean requiresLowerCaseUrl() {
return requiresLowerCaseUrl;
}
public String toString() {
return getClass().getName() + "[requiresLowerCase='" + requiresLowerCaseUrl + "']";
}
}