CASC-219: switched warn to error, fixed typo and this refs

This commit is contained in:
Misagh Moayyed 2014-03-11 08:46:00 -07:00
parent dfb3629dc2
commit 248643cf30
1 changed files with 3 additions and 4 deletions

View File

@ -50,7 +50,6 @@ import org.jasig.cas.client.validation.Assertion;
* @since 3.0
*/
public class AuthenticationFilter extends AbstractCasFilter {
/**
* The URL to the CAS Server login.
*/
@ -97,15 +96,15 @@ public class AuthenticationFilter extends AbstractCasFilter {
logger.trace("Loaded ignoreUrlPatternType parameter: {}", ignoreUrlPatternType);
if (ignorePattern != null) {
final Class<? extends UrlPatternMatcherStrategy> ignoreUrlMatcherClass = this.PATTERN_MATCHER_TYPES.get(ignoreUrlPatternType);
final Class<? extends UrlPatternMatcherStrategy> ignoreUrlMatcherClass = PATTERN_MATCHER_TYPES.get(ignoreUrlPatternType);
if (ignoreUrlMatcherClass != null) {
this.ignoreUrlPatternMatcherStrategyClass = ReflectUtils.newInstance(ignoreUrlMatcherClass.getName());
} else {
try {
logger.trace("Assuming {} is a qualfiied class name...", ignoreUrlPatternType);
logger.trace("Assuming {} is a qualified class name...", ignoreUrlPatternType);
this.ignoreUrlPatternMatcherStrategyClass = ReflectUtils.newInstance(ignoreUrlPatternType);
} catch (final IllegalArgumentException e) {
logger.warn("Could not instantiate class [{}]: [{}]", ignoreUrlPatternType, e.getMessage());
logger.error("Could not instantiate class [{}]", ignoreUrlPatternType, e);
}
}
if (this.ignoreUrlPatternMatcherStrategyClass != null) {