|
|
|
@ -75,7 +75,6 @@ public class ExceptionTranslationFilter extends GenericFilterBean { |
|
|
|
private AccessDeniedHandler accessDeniedHandler = new AccessDeniedHandlerImpl(); |
|
|
|
private AccessDeniedHandler accessDeniedHandler = new AccessDeniedHandlerImpl(); |
|
|
|
private AuthenticationEntryPoint authenticationEntryPoint; |
|
|
|
private AuthenticationEntryPoint authenticationEntryPoint; |
|
|
|
private AuthenticationTrustResolver authenticationTrustResolver = new AuthenticationTrustResolverImpl(); |
|
|
|
private AuthenticationTrustResolver authenticationTrustResolver = new AuthenticationTrustResolverImpl(); |
|
|
|
// private PortResolver portResolver = new PortResolverImpl();
|
|
|
|
|
|
|
|
private ThrowableAnalyzer throwableAnalyzer = new DefaultThrowableAnalyzer(); |
|
|
|
private ThrowableAnalyzer throwableAnalyzer = new DefaultThrowableAnalyzer(); |
|
|
|
|
|
|
|
|
|
|
|
private RequestCache requestCache = new HttpSessionRequestCache(); |
|
|
|
private RequestCache requestCache = new HttpSessionRequestCache(); |
|
|
|
@ -85,7 +84,6 @@ public class ExceptionTranslationFilter extends GenericFilterBean { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void afterPropertiesSet() { |
|
|
|
public void afterPropertiesSet() { |
|
|
|
Assert.notNull(authenticationEntryPoint, "authenticationEntryPoint must be specified"); |
|
|
|
Assert.notNull(authenticationEntryPoint, "authenticationEntryPoint must be specified"); |
|
|
|
// Assert.notNull(portResolver, "portResolver must be specified");
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) |
|
|
|
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) |
|
|
|
@ -192,14 +190,6 @@ public class ExceptionTranslationFilter extends GenericFilterBean { |
|
|
|
this.authenticationTrustResolver = authenticationTrustResolver; |
|
|
|
this.authenticationTrustResolver = authenticationTrustResolver; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// public void setCreateSessionAllowed(boolean createSessionAllowed) {
|
|
|
|
|
|
|
|
// this.createSessionAllowed = createSessionAllowed;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// public void setPortResolver(PortResolver portResolver) {
|
|
|
|
|
|
|
|
// this.portResolver = portResolver;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setThrowableAnalyzer(ThrowableAnalyzer throwableAnalyzer) { |
|
|
|
public void setThrowableAnalyzer(ThrowableAnalyzer throwableAnalyzer) { |
|
|
|
Assert.notNull(throwableAnalyzer, "throwableAnalyzer must not be null"); |
|
|
|
Assert.notNull(throwableAnalyzer, "throwableAnalyzer must not be null"); |
|
|
|
this.throwableAnalyzer = throwableAnalyzer; |
|
|
|
this.throwableAnalyzer = throwableAnalyzer; |
|
|
|
|