Java 类org.springframework.security.web.util.ThrowableCauseExtractor 实例源码

项目:generator-spring-spa    文件:AjaxTimeoutRedirectFilter.java   
/**
 * @see org.springframework.security.web.util.ThrowableAnalyzer#initExtractorMap()
 */
protected void initExtractorMap() {
    super.initExtractorMap();

    registerExtractor(ServletException.class, new ThrowableCauseExtractor() {
        public Throwable extractCause(Throwable throwable) {
            ThrowableAnalyzer.verifyThrowableHierarchy(throwable, ServletException.class);
            return ((ServletException) throwable).getRootCause();
        }
    });
}
项目:modinvreg    文件:AjaxTimeoutRedirectFilter.java   
/**
 * @see org.springframework.security.web.util.ThrowableAnalyzer#initExtractorMap()
 */
@Override
protected void initExtractorMap() {
    super.initExtractorMap();

    registerExtractor( ServletException.class, new ThrowableCauseExtractor() {
        @Override
        public Throwable extractCause( Throwable throwable ) {
            ThrowableAnalyzer.verifyThrowableHierarchy( throwable, ServletException.class );
            return ( ( ServletException ) throwable ).getRootCause();
        }
    } );
}
项目:netxilia    文件:ExcludeAjaxExceptionTranslationFilter.java   
/**
 * @see org.springframework.security.web.util.ThrowableAnalyzer#initExtractorMap()
 */
@Override
protected void initExtractorMap() {
    super.initExtractorMap();

    registerExtractor(ServletException.class, new ThrowableCauseExtractor() {
        public Throwable extractCause(Throwable throwable) {
            ThrowableAnalyzer.verifyThrowableHierarchy(throwable, ServletException.class);
            return ((ServletException) throwable).getRootCause();
        }
    });
}
项目:oauth-client-master    文件:DefaultThrowableAnalyzer.java   
/**
 * @see org.springframework.security.web.util.ThrowableAnalyzer#initExtractorMap()
 */
protected void initExtractorMap() {
  super.initExtractorMap();

  registerExtractor(ServletException.class, new ThrowableCauseExtractor() {
    public Throwable extractCause(Throwable throwable) {
      ThrowableAnalyzer.verifyThrowableHierarchy(throwable, ServletException.class);
      return ((ServletException) throwable).getRootCause();
    }
  });
}
项目:oauth-client-master    文件:OAuthConsumerContextFilter.java   
/**
 * @see org.springframework.security.web.util.ThrowableAnalyzer#initExtractorMap()
 */
protected void initExtractorMap() {
    super.initExtractorMap();

    registerExtractor(ServletException.class, new ThrowableCauseExtractor() {
        public Throwable extractCause(Throwable throwable) {
            ThrowableAnalyzer.verifyThrowableHierarchy(throwable, ServletException.class);
            return ((ServletException) throwable).getRootCause();
        }
    });
}
项目:AIDR    文件:AjaxTimeoutRedirectFilter.java   
/**
 * @see org.springframework.security.web.util.ThrowableAnalyzer#initExtractorMap()
 */
protected void initExtractorMap() {
    super.initExtractorMap();

    registerExtractor(ServletException.class, new ThrowableCauseExtractor() {
        public Throwable extractCause(Throwable throwable) {
            ThrowableAnalyzer.verifyThrowableHierarchy(throwable, ServletException.class);
            return ((ServletException) throwable).getRootCause();
        }
    });
}