SEC-2840: Modify typo in DelegatingAccessDeniedHandler
This commit is contained in:
parent
71a053000a
commit
1d0eee1d0b
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2013 the original author or authors.
|
* Copyright 2002-2015 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -39,7 +39,7 @@ import org.springframework.util.Assert;
|
||||||
public final class DelegatingAccessDeniedHandler implements AccessDeniedHandler {
|
public final class DelegatingAccessDeniedHandler implements AccessDeniedHandler {
|
||||||
private final LinkedHashMap<Class<? extends AccessDeniedException>, AccessDeniedHandler> handlers;
|
private final LinkedHashMap<Class<? extends AccessDeniedException>, AccessDeniedHandler> handlers;
|
||||||
|
|
||||||
private final AccessDeniedHandler defaultHander;
|
private final AccessDeniedHandler defaultHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new instance
|
* Creates a new instance
|
||||||
|
@ -49,17 +49,17 @@ public final class DelegatingAccessDeniedHandler implements AccessDeniedHandler
|
||||||
* {@link AccessDeniedHandler} that should be used. Each is
|
* {@link AccessDeniedHandler} that should be used. Each is
|
||||||
* considered in the order they are specified and only the first
|
* considered in the order they are specified and only the first
|
||||||
* {@link AccessDeniedHandler} is ued.
|
* {@link AccessDeniedHandler} is ued.
|
||||||
* @param defaultHander
|
* @param defaultHandler
|
||||||
* the default {@link AccessDeniedHandler} that should be used if
|
* the default {@link AccessDeniedHandler} that should be used if
|
||||||
* none of the handlers matches.
|
* none of the handlers matches.
|
||||||
*/
|
*/
|
||||||
public DelegatingAccessDeniedHandler(
|
public DelegatingAccessDeniedHandler(
|
||||||
LinkedHashMap<Class<? extends AccessDeniedException>, AccessDeniedHandler> handlers,
|
LinkedHashMap<Class<? extends AccessDeniedException>, AccessDeniedHandler> handlers,
|
||||||
AccessDeniedHandler defaultHander) {
|
AccessDeniedHandler defaultHandler) {
|
||||||
Assert.notEmpty(handlers, "handlers cannot be null or empty");
|
Assert.notEmpty(handlers, "handlers cannot be null or empty");
|
||||||
Assert.notNull(defaultHander, "defaultHandler cannot be null");
|
Assert.notNull(defaultHandler, "defaultHandler cannot be null");
|
||||||
this.handlers = handlers;
|
this.handlers = handlers;
|
||||||
this.defaultHander = defaultHander;
|
this.defaultHandler = defaultHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ public final class DelegatingAccessDeniedHandler implements AccessDeniedHandler
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
defaultHander.handle(request, response, accessDeniedException);
|
defaultHandler.handle(request, response, accessDeniedException);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue