Package nu.localhost.tapestry5.springsecurity.util

Source Code of nu.localhost.tapestry5.springsecurity.util.DefaultThrowableAnalyzer

package nu.localhost.tapestry5.springsecurity.util;

import javax.servlet.ServletException;

import org.springframework.security.web.util.ThrowableAnalyzer;
import org.springframework.security.web.util.ThrowableCauseExtractor;

public class DefaultThrowableAnalyzer extends ThrowableAnalyzer {

  /**
     * @see org.springframework.security.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();
                    }
                });
    }
}
TOP

Related Classes of nu.localhost.tapestry5.springsecurity.util.DefaultThrowableAnalyzer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.